2022-04-20 20:32:07 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
2022-05-16 13:30:51 +00:00
|
|
|
app_proxy:
|
|
|
|
environment:
|
2022-12-04 20:18:22 +00:00
|
|
|
APP_HOST: samourai-server_nginx_1
|
2022-05-16 13:30:51 +00:00
|
|
|
APP_PORT: 8081
|
2022-06-07 07:04:33 +00:00
|
|
|
PROXY_AUTH_ADD: "false"
|
2022-12-04 20:18:22 +00:00
|
|
|
|
2022-04-20 20:32:07 +00:00
|
|
|
db:
|
2022-07-23 08:12:28 +00:00
|
|
|
image: louneskmt/dojo-db:1.5.0-low-mem@sha256:5af4f90818d55360e572033fcc493cd945143e7a3aaef91fa7e102f3c66c7a5b
|
2022-04-20 20:32:07 +00:00
|
|
|
init: true
|
|
|
|
restart: on-failure
|
|
|
|
stop_grace_period: 5m
|
|
|
|
user: "1000:1000"
|
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: samourai-main
|
|
|
|
MYSQL_ROOT_PASSWORD: rootpassword
|
|
|
|
MYSQL_USER: samourai
|
|
|
|
MYSQL_PASSWORD: password
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/mysql/data:/var/lib/mysql
|
|
|
|
|
|
|
|
node:
|
2022-07-26 11:58:23 +00:00
|
|
|
image: louneskmt/dojo-nodejs:1.16.1@sha256:49de92774ecfcb88af1dc67f8d498641d750c4ec9acaab3c448d70c4f2d4bfe7
|
2022-04-20 20:32:07 +00:00
|
|
|
init: true
|
|
|
|
restart: on-failure
|
2022-12-04 20:18:22 +00:00
|
|
|
command: "/home/node/app/wait-for-it.sh samourai-server_db_1:3306 --timeout=720 --strict -- /home/node/app/restart.sh"
|
2022-04-20 20:32:07 +00:00
|
|
|
user: "1000:1000"
|
|
|
|
environment:
|
|
|
|
# GLOBAL
|
2022-05-27 10:14:11 +00:00
|
|
|
COMMON_BTC_NETWORK: $APP_BITCOIN_NETWORK
|
2022-07-26 11:58:23 +00:00
|
|
|
DOJO_VERSION_TAG: 1.16.1
|
2022-04-20 20:32:07 +00:00
|
|
|
NET_DOJO_TOR_IPV4: $TOR_PROXY_IP
|
|
|
|
TOR_SOCKS_PORT: $TOR_PROXY_PORT
|
2022-12-04 20:18:22 +00:00
|
|
|
NET_DOJO_MYSQL_IPV4: samourai-server_db_1
|
2022-04-20 20:32:07 +00:00
|
|
|
|
|
|
|
# MYSQL
|
|
|
|
MYSQL_DATABASE: samourai-main
|
|
|
|
MYSQL_USER: samourai
|
|
|
|
MYSQL_PASSWORD: password
|
|
|
|
|
|
|
|
# NODEJS
|
|
|
|
NODE_GAP_EXTERNAL: 100
|
|
|
|
NODE_GAP_INTERNAL: 100
|
|
|
|
NODE_ADDR_FILTER_THRESHOLD: 1000
|
|
|
|
NODE_ADDR_DERIVATION_MIN_CHILD: 2
|
|
|
|
NODE_ADDR_DERIVATION_MAX_CHILD: 2
|
|
|
|
NODE_ADDR_DERIVATION_THRESHOLD: 10
|
|
|
|
NODE_TXS_SCHED_MAX_ENTRIES: 10
|
|
|
|
NODE_TXS_SCHED_MAX_DELTA_HEIGHT: 18
|
|
|
|
NODE_JWT_ACCESS_EXPIRES: 900
|
|
|
|
NODE_JWT_REFRESH_EXPIRES: 7200
|
|
|
|
NODE_PREFIX_STATUS: status
|
|
|
|
NODE_PREFIX_SUPPORT: support
|
|
|
|
NODE_PREFIX_STATUS_PUSHTX: status
|
|
|
|
NODE_TRACKER_MEMPOOL_PERIOD: 10000
|
|
|
|
NODE_TRACKER_UNCONF_TXS_PERIOD: 300000
|
|
|
|
NODE_ACTIVE_INDEXER: local_indexer
|
|
|
|
NODE_FEE_TYPE: ECONOMICAL
|
|
|
|
|
|
|
|
# SECURITY
|
2022-05-27 10:14:11 +00:00
|
|
|
NODE_API_KEY: $APP_SAMOURAI_SERVER_NODE_API_KEY
|
|
|
|
NODE_ADMIN_KEY: $APP_SAMOURAI_SERVER_NODE_ADMIN_KEY
|
|
|
|
NODE_JWT_SECRET: $APP_SAMOURAI_SERVER_NODE_JWT_SECRET
|
2022-04-20 20:32:07 +00:00
|
|
|
|
|
|
|
# BITCOIN
|
2022-05-27 10:14:11 +00:00
|
|
|
BITCOIND_IP: $APP_BITCOIN_NODE_IP
|
|
|
|
BITCOIND_RPC_PORT: $APP_BITCOIN_RPC_PORT
|
|
|
|
BITCOIND_RPC_USER: $APP_BITCOIN_RPC_USER
|
|
|
|
BITCOIND_RPC_PASSWORD: $APP_BITCOIN_RPC_PASS
|
|
|
|
BITCOIND_ZMQ_RAWTXS: $APP_BITCOIN_ZMQ_RAWTX_PORT
|
|
|
|
BITCOIND_ZMQ_BLK_HASH: $APP_BITCOIN_ZMQ_HASHBLOCK_PORT
|
2022-04-20 20:32:07 +00:00
|
|
|
|
|
|
|
# EXPLORER
|
|
|
|
EXPLORER_INSTALL: "off"
|
|
|
|
|
|
|
|
# INDEXER
|
2022-05-27 10:14:11 +00:00
|
|
|
INDEXER_IP: $APP_ELECTRS_NODE_IP
|
|
|
|
INDEXER_RPC_PORT: $APP_ELECTRS_NODE_PORT
|
2022-04-20 20:32:07 +00:00
|
|
|
INDEXER_PROTOCOL: tcp
|
|
|
|
INDEXER_BATCH_SUPPORT: inactive # 'active' for ElectrumX, 'inactive' otherwise
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
|
|
|
|
whirlpool:
|
2022-07-23 08:12:28 +00:00
|
|
|
image: louneskmt/whirlpool:0.10.15@sha256:3b766327dfa4c2ae40f190c18afa1f3c9cb9101d7964049dc79bdcb89fd21a90
|
2022-04-20 20:32:07 +00:00
|
|
|
init: true
|
|
|
|
restart: on-failure
|
|
|
|
user: "1000:1000"
|
|
|
|
command:
|
|
|
|
- "--listen"
|
2022-05-27 10:14:11 +00:00
|
|
|
- "--cli.apiKey=$APP_SAMOURAI_SERVER_WHIRLPOOL_API_KEY"
|
2022-04-20 20:32:07 +00:00
|
|
|
- "--cli.api.http-enable=true"
|
2022-12-04 20:18:22 +00:00
|
|
|
- "--cli.api.http-port=8898"
|
2022-04-20 20:32:07 +00:00
|
|
|
- "--cli.tor=true"
|
|
|
|
- "--cli.torConfig.coordinator.enabled=true"
|
|
|
|
- "--cli.torConfig.coordinator.onion=true"
|
|
|
|
- "--cli.torConfig.backend.enabled=false"
|
|
|
|
- "--cli.torConfig.backend.onion=false"
|
|
|
|
- "--cli.mix.liquidityClient=true"
|
|
|
|
- "--cli.mix.clientsPerPool=1"
|
|
|
|
- "--resync"
|
|
|
|
environment:
|
2022-05-27 10:14:11 +00:00
|
|
|
WHIRLPOOL_BITCOIN_NETWORK: $APP_BITCOIN_NETWORK
|
2022-04-20 20:32:07 +00:00
|
|
|
WHIRLPOOL_DOJO: "on"
|
2022-12-04 20:18:22 +00:00
|
|
|
WHIRLPOOL_DOJO_IP: "samourai-server_nginx_1"
|
2022-07-23 08:12:28 +00:00
|
|
|
depends_on:
|
|
|
|
- node
|
2022-04-20 20:32:07 +00:00
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/whirlpool:/home/whirlpool/.whirlpool-cli
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:1.21-alpine@sha256:686aac2769fd6e7bab67663fd38750c135b72d993d0bb0a942ab02ef647fc9c3
|
|
|
|
init: true
|
|
|
|
restart: on-failure
|
|
|
|
command: /bin/sh -c "envsubst < /var/www/connect/js/conf.template.js > /var/www/connect/js/conf.js && /wait-for node:8080 --timeout=720 -- nginx"
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/nginx/wait-for:/wait-for
|
|
|
|
- ${APP_DATA_DIR}/nginx/nginx.conf:/etc/nginx/nginx.conf
|
2022-05-27 10:14:11 +00:00
|
|
|
- ${APP_DATA_DIR}/nginx/${APP_BITCOIN_NETWORK}.conf:/etc/nginx/sites-enabled/dojo.conf
|
2022-04-20 20:32:07 +00:00
|
|
|
- ${APP_DATA_DIR}/nginx/connect.conf:/etc/nginx/sites-enabled/connect.conf
|
|
|
|
- ${APP_DATA_DIR}/nginx/connect:/var/www/connect
|
|
|
|
environment:
|
2022-05-27 10:14:11 +00:00
|
|
|
COMMON_BTC_NETWORK: $APP_BITCOIN_NETWORK
|
2022-12-04 20:18:22 +00:00
|
|
|
DOJO_LOCAL_PORT: 3009
|
2022-05-27 10:14:11 +00:00
|
|
|
DOJO_HIDDEN_SERVICE: $APP_SAMOURAI_SERVER_DOJO_HIDDEN_SERVICE
|
|
|
|
WHIRLPOOL_HIDDEN_SERVICE: $APP_SAMOURAI_SERVER_WHIRLPOOL_HIDDEN_SERVICE
|
2022-04-20 20:32:07 +00:00
|
|
|
NODE_PREFIX_SUPPORT: support
|
2022-05-27 10:14:11 +00:00
|
|
|
NODE_ADMIN_KEY: $APP_SAMOURAI_SERVER_NODE_ADMIN_KEY
|
|
|
|
WHIRLPOOL_API_KEY: $APP_SAMOURAI_SERVER_WHIRLPOOL_API_KEY
|
2022-04-20 20:32:07 +00:00
|
|
|
ports:
|
2022-12-04 20:18:22 +00:00
|
|
|
- "3009:80"
|
2022-04-20 20:32:07 +00:00
|
|
|
depends_on:
|
|
|
|
- node
|
2022-10-25 14:23:21 +00:00
|
|
|
|
|
|
|
tor:
|
|
|
|
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a
|
|
|
|
user: "1000:1000"
|
|
|
|
restart: on-failure
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/torrc:/etc/tor/torrc:ro
|
|
|
|
- ${TOR_DATA_DIR}:/data
|
|
|
|
environment:
|
|
|
|
HOME: "/tmp"
|