Chown .bitcoin dir to bitcoin user

This commit is contained in:
omaroughriss 2025-07-16 11:17:11 +02:00
parent 15fc8368d4
commit 9bb7fdd037

View File

@ -15,15 +15,16 @@ services:
- tor - tor
volumes: volumes:
- bitcoin_data:/home/bitcoin/.bitcoin - bitcoin_data:/home/bitcoin/.bitcoin
- ./bitcoin/bitcoin.conf:/home/bitcoin/.bitcoin/bitcoin.conf:ro - ./bitcoin/bitcoin.conf:/home/bitcoin/.bitcoin/bitcoin.conf
networks: networks:
btcnet: btcnet:
aliases: aliases:
- bitcoin - bitcoin
user: root
entrypoint: > entrypoint: >
/bin/sh -c " /bin/sh -c "
mkdir -p /home/bitcoin/.bitcoin/wallets && chown -R bitcoin:bitcoin /home/bitcoin/.bitcoin &&
bitcoind -conf=/home/bitcoin/.bitcoin/bitcoin.conf -signet -printtoconsole" su-exec bitcoin bitcoind -conf=/home/bitcoin/.bitcoin/bitcoin.conf -signet -printtoconsole"
healthcheck: healthcheck:
test: ["CMD", "bitcoin-cli", "-conf=/home/bitcoin/.bitcoin/bitcoin.conf", "getblockchaininfo"] test: ["CMD", "bitcoin-cli", "-conf=/home/bitcoin/.bitcoin/bitcoin.conf", "getblockchaininfo"]
interval: 30s interval: 30s
@ -89,7 +90,7 @@ services:
image: git.4nkweb.com/4nk/lecoffre-back-mini:latest image: git.4nkweb.com/4nk/lecoffre-back-mini:latest
container_name: lecoffre-back container_name: lecoffre-back
ports: ports:
- "3001:3001" - "8080:8080"
networks: networks:
btcnet: btcnet:
aliases: aliases: