bitcoin-s/docker-compose.yml
2022-08-15 13:25:04 -05:00

50 lines
1.7 KiB
YAML

version: "3.7"
services:
web:
image: bitcoinscala/wallet-server-ui:latest
user: "0:1000"
restart: on-failure
stop_grace_period: 1m
volumes:
- ./data/wallet:/wallet
- ./data/log:/log
environment:
LOG_PATH: "/log/"
BITCOIN_S_HOME: "/wallet/"
MEMPOOL_API_URL: "http://mempool.space/api"
WALLET_SERVER_API_URL: "http://walletserver:9999/"
WALLET_SERVER_WS: "ws://walletserver:19999/events"
DEFAULT_UI_PASSWORD: $APP_PASSWORD
BITCOIN_S_SERVER_RPC_PASSWORD: $APP_PASSWORD
ports:
- "3002:3002"
depends_on:
- walletserver
walletserver:
image: bitcoinscala/bitcoin-s-server:latest
entrypoint: ["/opt/docker/bin/bitcoin-s-server", "--datadir", "/wallet", "--conf", "/opt/docker/docker-application.conf"]
user: "0:1000"
restart: on-failure
volumes:
- ./data/wallet:/wallet
environment:
BITCOIN_S_NODE_MODE: "neutrino"
BITCOIN_S_NODE_PEERS: "neutrino.suredbits.com:8333"
BITCOIN_S_TOR_PROVIDED: "true"
BITCOIN_S_PROXY_ENABLED: "false"
BITCOIN_S_TOR_ENABLED: "false"
BITCOIN_S_DLCNODE_PROXY_ENABLED: "true"
BITCOIN_S_DLCNODE_TOR_ENABLED: "true"
BITCOIN_S_DLCNODE_PROXY_SOCKS5: "tor:9050"
BITCOIN_S_DLCNODE_TOR_CONTROL: "tor:9051"
BITCOIN_S_DLCNODE_TOR_PASSWORD: "topsecret"
BITCOIN_S_SERVER_RPC_PASSWORD: $APP_PASSWORD
ports:
- "9999:9999"
depends_on:
- tor
tor:
image: bitcoinscala/tor:latest
entrypoint: ["/tor", "--ExitRelay", "0", "--BridgeRelay", "0", "--SOCKSPort", "0.0.0.0:9050", "--ControlPort", "0.0.0.0:9051", "--HashedControlPassword", "16:EF3A794FD6F30EF76049147EF252111809E7D51C049FEB353B547C1553"]
restart: on-failure