parent
5f6819afcb
commit
ebdbe115dd
11 changed files with 141 additions and 16 deletions
@ -0,0 +1,16 @@ |
||||
monero_wallet: |
||||
image: i_decred_wallet |
||||
build: |
||||
context: decred_wallet |
||||
dockerfile: Dockerfile |
||||
container_name: decred_wallet |
||||
volumes: |
||||
- ${DATA_PATH}/decred_wallet:/data |
||||
expose: |
||||
- ${DCR_WALLET_RPC_PORT} |
||||
logging: |
||||
driver: "json-file" |
||||
options: |
||||
max-size: "10m" |
||||
max-file: "3" |
||||
restart: unless-stopped |
@ -0,0 +1,16 @@ |
||||
monero_daemon: |
||||
image: i_decred_daemon |
||||
build: |
||||
context: decred_daemon |
||||
dockerfile: Dockerfile |
||||
container_name: decred_daemon |
||||
volumes: |
||||
- ${DATA_PATH}/decred_daemon:/data |
||||
expose: |
||||
- ${DCR_RPC_PORT} |
||||
logging: |
||||
driver: "json-file" |
||||
options: |
||||
max-size: "10m" |
||||
max-file: "3" |
||||
restart: unless-stopped |
@ -0,0 +1,25 @@ |
||||
FROM i_swapclient as install_stage |
||||
|
||||
RUN basicswap-prepare --preparebinonly --bindir=/coin_bin --withcoin=decred --withoutcoins=particl && \ |
||||
find /coin_bin -name *.tar.gz -delete |
||||
|
||||
FROM debian:bullseye-slim |
||||
COPY --from=install_stage /coin_bin . |
||||
|
||||
ENV DCR_DATA /data |
||||
|
||||
RUN groupadd -r decred && useradd -r -m -g decred decred \ |
||||
&& apt-get update \ |
||||
&& apt-get install -qq --no-install-recommends gosu \ |
||||
&& rm -rf /var/lib/apt/lists/* \ |
||||
&& mkdir "$DCR_DATA" \ |
||||
&& chown -R decred:decred "$DCR_DATA" \ |
||||
&& ln -sfn "$DECRED_DATA" /home/decred/decred \ |
||||
&& chown -h decred:decred /home/decred/decred |
||||
VOLUME /data |
||||
|
||||
COPY entrypoint.sh /entrypoint.sh |
||||
ENTRYPOINT ["/entrypoint.sh"] |
||||
|
||||
EXPOSE 9108 9109 |
||||
CMD ["/decred/dcrd", "--datadir=/data"] |
@ -0,0 +1,11 @@ |
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
if [[ "$1" == "dcrctl" || "$1" == "dcrd" || "$1" == "dcrwallet" ]]; then |
||||
mkdir -p "$DECRED_DATA" |
||||
|
||||
chown -h decred:decred /home/decred/decred |
||||
exec gosu decred "$@" |
||||
else |
||||
exec "$@" |
||||
fi |
@ -0,0 +1,19 @@ |
||||
FROM i_decred_daemon |
||||
|
||||
ENV DCR_DATA /data |
||||
|
||||
RUN groupadd -r decred && useradd -r -m -g decred decred \ |
||||
&& apt-get update \ |
||||
&& apt-get install -qq --no-install-recommends gosu \ |
||||
&& rm -rf /var/lib/apt/lists/* \ |
||||
&& mkdir "$DCR_DATA" \ |
||||
&& chown -R decred:decred "$DCR_DATA" \ |
||||
&& ln -sfn "$DECRED_DATA" /home/decred/decred \ |
||||
&& chown -h decred:decred /home/decred/decred |
||||
VOLUME /data |
||||
|
||||
COPY entrypoint.sh /entrypoint.sh |
||||
ENTRYPOINT ["/entrypoint.sh"] |
||||
|
||||
EXPOSE 9209 |
||||
CMD ["/decred/dcrwallet", "--datadir=/data"] |
@ -0,0 +1,11 @@ |
||||
#!/bin/bash |
||||
set -e |
||||
|
||||
if [[ "$1" == "dcrctl" || "$1" == "dcrd" || "$1" == "dcrwallet" ]]; then |
||||
mkdir -p "$DECRED_DATA" |
||||
|
||||
chown -h decred:decred /home/decred/decred |
||||
exec gosu decred "$@" |
||||
else |
||||
exec "$@" |
||||
fi |
Loading…
Reference in new issue