|
@ -3,10 +3,9 @@ version: "3.7" |
|
|
services: |
|
|
services: |
|
|
app_proxy: |
|
|
app_proxy: |
|
|
environment: |
|
|
environment: |
|
|
APP_HOST: samourai-server_nginx_1 |
|
|
APP_HOST: $APP_SAMOURAI_SERVER_IP |
|
|
APP_PORT: 8081 |
|
|
APP_PORT: 8081 |
|
|
PROXY_AUTH_ADD: "false" |
|
|
PROXY_AUTH_ADD: "false" |
|
|
|
|
|
|
|
|
db: |
|
|
db: |
|
|
image: louneskmt/dojo-db:1.5.0-low-mem@sha256:5af4f90818d55360e572033fcc493cd945143e7a3aaef91fa7e102f3c66c7a5b |
|
|
image: louneskmt/dojo-db:1.5.0-low-mem@sha256:5af4f90818d55360e572033fcc493cd945143e7a3aaef91fa7e102f3c66c7a5b |
|
|
init: true |
|
|
init: true |
|
@ -20,12 +19,15 @@ services: |
|
|
MYSQL_PASSWORD: password |
|
|
MYSQL_PASSWORD: password |
|
|
volumes: |
|
|
volumes: |
|
|
- ${APP_DATA_DIR}/mysql/data:/var/lib/mysql |
|
|
- ${APP_DATA_DIR}/mysql/data:/var/lib/mysql |
|
|
|
|
|
networks: |
|
|
|
|
|
default: |
|
|
|
|
|
ipv4_address: $APP_SAMOURAI_SERVER_DB_IP |
|
|
|
|
|
|
|
|
node: |
|
|
node: |
|
|
image: louneskmt/dojo-nodejs:1.16.1@sha256:49de92774ecfcb88af1dc67f8d498641d750c4ec9acaab3c448d70c4f2d4bfe7 |
|
|
image: louneskmt/dojo-nodejs:1.16.1@sha256:49de92774ecfcb88af1dc67f8d498641d750c4ec9acaab3c448d70c4f2d4bfe7 |
|
|
init: true |
|
|
init: true |
|
|
restart: on-failure |
|
|
restart: on-failure |
|
|
command: "/home/node/app/wait-for-it.sh samourai-server_db_1:3306 --timeout=720 --strict -- /home/node/app/restart.sh" |
|
|
command: "/home/node/app/wait-for-it.sh ${APP_SAMOURAI_SERVER_DB_IP}:3306 --timeout=720 --strict -- /home/node/app/restart.sh" |
|
|
user: "1000:1000" |
|
|
user: "1000:1000" |
|
|
environment: |
|
|
environment: |
|
|
# GLOBAL |
|
|
# GLOBAL |
|
@ -33,7 +35,7 @@ services: |
|
|
DOJO_VERSION_TAG: 1.16.1 |
|
|
DOJO_VERSION_TAG: 1.16.1 |
|
|
NET_DOJO_TOR_IPV4: $TOR_PROXY_IP |
|
|
NET_DOJO_TOR_IPV4: $TOR_PROXY_IP |
|
|
TOR_SOCKS_PORT: $TOR_PROXY_PORT |
|
|
TOR_SOCKS_PORT: $TOR_PROXY_PORT |
|
|
NET_DOJO_MYSQL_IPV4: samourai-server_db_1 |
|
|
NET_DOJO_MYSQL_IPV4: $APP_SAMOURAI_SERVER_DB_IP |
|
|
|
|
|
|
|
|
# MYSQL |
|
|
# MYSQL |
|
|
MYSQL_DATABASE: samourai-main |
|
|
MYSQL_DATABASE: samourai-main |
|
@ -82,6 +84,9 @@ services: |
|
|
INDEXER_BATCH_SUPPORT: inactive # 'active' for ElectrumX, 'inactive' otherwise |
|
|
INDEXER_BATCH_SUPPORT: inactive # 'active' for ElectrumX, 'inactive' otherwise |
|
|
depends_on: |
|
|
depends_on: |
|
|
- db |
|
|
- db |
|
|
|
|
|
networks: |
|
|
|
|
|
default: |
|
|
|
|
|
ipv4_address: $APP_SAMOURAI_SERVER_NODE_IP |
|
|
|
|
|
|
|
|
whirlpool: |
|
|
whirlpool: |
|
|
image: louneskmt/whirlpool:0.10.15@sha256:3b766327dfa4c2ae40f190c18afa1f3c9cb9101d7964049dc79bdcb89fd21a90 |
|
|
image: louneskmt/whirlpool:0.10.15@sha256:3b766327dfa4c2ae40f190c18afa1f3c9cb9101d7964049dc79bdcb89fd21a90 |
|
@ -92,7 +97,7 @@ services: |
|
|
- "--listen" |
|
|
- "--listen" |
|
|
- "--cli.apiKey=$APP_SAMOURAI_SERVER_WHIRLPOOL_API_KEY" |
|
|
- "--cli.apiKey=$APP_SAMOURAI_SERVER_WHIRLPOOL_API_KEY" |
|
|
- "--cli.api.http-enable=true" |
|
|
- "--cli.api.http-enable=true" |
|
|
- "--cli.api.http-port=8898" |
|
|
- "--cli.api.http-port=$APP_SAMOURAI_SERVER_WHIRLPOOL_PORT" |
|
|
- "--cli.tor=true" |
|
|
- "--cli.tor=true" |
|
|
- "--cli.torConfig.coordinator.enabled=true" |
|
|
- "--cli.torConfig.coordinator.enabled=true" |
|
|
- "--cli.torConfig.coordinator.onion=true" |
|
|
- "--cli.torConfig.coordinator.onion=true" |
|
@ -104,11 +109,14 @@ services: |
|
|
environment: |
|
|
environment: |
|
|
WHIRLPOOL_BITCOIN_NETWORK: $APP_BITCOIN_NETWORK |
|
|
WHIRLPOOL_BITCOIN_NETWORK: $APP_BITCOIN_NETWORK |
|
|
WHIRLPOOL_DOJO: "on" |
|
|
WHIRLPOOL_DOJO: "on" |
|
|
WHIRLPOOL_DOJO_IP: "samourai-server_nginx_1" |
|
|
WHIRLPOOL_DOJO_IP: $APP_SAMOURAI_SERVER_IP |
|
|
depends_on: |
|
|
depends_on: |
|
|
- node |
|
|
- node |
|
|
volumes: |
|
|
volumes: |
|
|
- ${APP_DATA_DIR}/whirlpool:/home/whirlpool/.whirlpool-cli |
|
|
- ${APP_DATA_DIR}/whirlpool:/home/whirlpool/.whirlpool-cli |
|
|
|
|
|
networks: |
|
|
|
|
|
default: |
|
|
|
|
|
ipv4_address: $APP_SAMOURAI_SERVER_WHIRLPOOL_IP |
|
|
|
|
|
|
|
|
nginx: |
|
|
nginx: |
|
|
image: nginx:1.21-alpine@sha256:686aac2769fd6e7bab67663fd38750c135b72d993d0bb0a942ab02ef647fc9c3 |
|
|
image: nginx:1.21-alpine@sha256:686aac2769fd6e7bab67663fd38750c135b72d993d0bb0a942ab02ef647fc9c3 |
|
@ -123,16 +131,19 @@ services: |
|
|
- ${APP_DATA_DIR}/nginx/connect:/var/www/connect |
|
|
- ${APP_DATA_DIR}/nginx/connect:/var/www/connect |
|
|
environment: |
|
|
environment: |
|
|
COMMON_BTC_NETWORK: $APP_BITCOIN_NETWORK |
|
|
COMMON_BTC_NETWORK: $APP_BITCOIN_NETWORK |
|
|
DOJO_LOCAL_PORT: 3009 |
|
|
DOJO_LOCAL_PORT: $APP_SAMOURAI_SERVER_DOJO_PORT |
|
|
DOJO_HIDDEN_SERVICE: $APP_SAMOURAI_SERVER_DOJO_HIDDEN_SERVICE |
|
|
DOJO_HIDDEN_SERVICE: $APP_SAMOURAI_SERVER_DOJO_HIDDEN_SERVICE |
|
|
WHIRLPOOL_HIDDEN_SERVICE: $APP_SAMOURAI_SERVER_WHIRLPOOL_HIDDEN_SERVICE |
|
|
WHIRLPOOL_HIDDEN_SERVICE: $APP_SAMOURAI_SERVER_WHIRLPOOL_HIDDEN_SERVICE |
|
|
NODE_PREFIX_SUPPORT: support |
|
|
NODE_PREFIX_SUPPORT: support |
|
|
NODE_ADMIN_KEY: $APP_SAMOURAI_SERVER_NODE_ADMIN_KEY |
|
|
NODE_ADMIN_KEY: $APP_SAMOURAI_SERVER_NODE_ADMIN_KEY |
|
|
WHIRLPOOL_API_KEY: $APP_SAMOURAI_SERVER_WHIRLPOOL_API_KEY |
|
|
WHIRLPOOL_API_KEY: $APP_SAMOURAI_SERVER_WHIRLPOOL_API_KEY |
|
|
ports: |
|
|
ports: |
|
|
- "3009:80" |
|
|
- "$APP_SAMOURAI_SERVER_DOJO_PORT:80" |
|
|
depends_on: |
|
|
depends_on: |
|
|
- node |
|
|
- node |
|
|
|
|
|
networks: |
|
|
|
|
|
default: |
|
|
|
|
|
ipv4_address: $APP_SAMOURAI_SERVER_IP |
|
|
|
|
|
|
|
|
tor: |
|
|
tor: |
|
|
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a |
|
|
image: getumbrel/tor:0.4.7.8@sha256:2ace83f22501f58857fa9b403009f595137fa2e7986c4fda79d82a8119072b6a |
|
|