2023-07-13 21:02:05 +03:00
|
|
|
version: "2"
|
2019-12-12 23:04:19 +03:00
|
|
|
|
2019-12-05 22:08:54 +03:00
|
|
|
services:
|
2023-07-13 21:02:05 +03:00
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
restart: always
|
|
|
|
command: [redis-server, --appendonly, "yes"]
|
|
|
|
volumes:
|
|
|
|
- redis:/data
|
|
|
|
|
|
|
|
nginx:
|
|
|
|
image: nginx:alpine
|
|
|
|
container_name: nginx
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- conf:/etc/nginx/conf.d
|
|
|
|
- vhost:/etc/nginx/vhost.d
|
|
|
|
- html:/usr/share/nginx/html
|
|
|
|
- certs:/etc/nginx/certs
|
|
|
|
logging:
|
|
|
|
driver: none
|
|
|
|
|
|
|
|
dockergen:
|
|
|
|
image: poma/docker-gen
|
|
|
|
container_name: dockergen
|
|
|
|
restart: always
|
|
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
|
|
|
volumes_from:
|
|
|
|
- nginx
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
|
|
|
|
letsencrypt:
|
|
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
|
|
container_name: letsencrypt
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
NGINX_DOCKER_GEN_CONTAINER: dockergen
|
|
|
|
volumes_from:
|
|
|
|
- nginx
|
|
|
|
- dockergen
|
|
|
|
|
|
|
|
# ---------------------- ETH Mainnet ----------------------- #
|
|
|
|
|
|
|
|
eth-server:
|
|
|
|
build: .
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["eth"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.eth
|
|
|
|
environment:
|
|
|
|
NET_ID: 1
|
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
eth-treeWatcher:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["eth"]
|
|
|
|
restart: always
|
|
|
|
command: treeWatcher
|
|
|
|
env_file: .env.eth
|
|
|
|
environment:
|
|
|
|
NET_ID: 1
|
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
depends_on: [redis, eth-server]
|
|
|
|
|
|
|
|
eth-priceWatcher:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["eth"]
|
|
|
|
restart: always
|
|
|
|
command: priceWatcher
|
|
|
|
env_file: .env.eth
|
|
|
|
environment:
|
|
|
|
NET_ID: 1
|
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
depends_on: [redis, eth-server]
|
|
|
|
|
|
|
|
eth-healthWatcher:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["eth"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.eth
|
|
|
|
environment:
|
|
|
|
NET_ID: 1
|
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
depends_on: [redis, eth-server]
|
|
|
|
|
|
|
|
eth-worker1:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["eth"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.eth
|
|
|
|
environment:
|
|
|
|
NET_ID: 1
|
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
depends_on: [redis, eth-server]
|
|
|
|
|
|
|
|
# # This is additional worker for ethereum mainnet
|
|
|
|
# # So you can process transactions from multiple addresses, but before it you need to set up those addresses as workers
|
|
|
|
# eth-worker2:
|
2023-08-28 11:52:33 +03:00
|
|
|
# image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
# profiles: [ 'eth' ]
|
|
|
|
# restart: always
|
|
|
|
# command: worker
|
|
|
|
# env_file: .env2.eth
|
|
|
|
# environment:
|
|
|
|
# REDIS_URL: redis://redis/0
|
|
|
|
|
|
|
|
# # this container will proxy *.onion domain to the server container
|
|
|
|
# # if you want to run *only* as .onion service, you don't need `nginx`, `letsencrypt`, `dockergen` containers
|
|
|
|
# tor:
|
|
|
|
# image: strm/tor
|
|
|
|
# restart: always
|
|
|
|
# depends_on: [server]
|
|
|
|
# environment:
|
|
|
|
# LISTEN_PORT: 80
|
|
|
|
# REDIRECT: server:8000
|
|
|
|
# # Generate a new key with
|
|
|
|
# # docker run --rm --entrypoint shallot strm/tor-hiddenservice-nginx ^foo
|
|
|
|
# PRIVATE_KEY: |
|
|
|
|
# -----BEGIN RSA PRIVATE KEY-----
|
|
|
|
# ...
|
|
|
|
# -----END RSA PRIVATE KEY-----
|
|
|
|
|
|
|
|
# # auto update docker containers when new image is pushed to docker hub (be careful with that)
|
|
|
|
# watchtower:
|
|
|
|
# image: v2tec/watchtower
|
|
|
|
# restart: always
|
|
|
|
# volumes:
|
|
|
|
# - /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
|
|
|
|
# # this container will send Telegram notifications when other containers are stopped/restarted
|
|
|
|
# # it's best to run this container on some other instance, otherwise it can't notify if the whole instance goes down
|
|
|
|
# notifier:
|
|
|
|
# image: poma/docker-telegram-notifier
|
|
|
|
# restart: always
|
|
|
|
# volumes:
|
|
|
|
# - /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
# environment:
|
|
|
|
# # How to create bot: https://core.telegram.org/bots#3-how-do-i-create-a-bot
|
|
|
|
# # How to get chat id: https://stackoverflow.com/questions/32423837/telegram-bot-how-to-get-a-group-chat-id/32572159#32572159
|
|
|
|
# TELEGRAM_NOTIFIER_BOT_TOKEN: ...
|
|
|
|
# TELEGRAM_NOTIFIER_CHAT_ID: ...
|
|
|
|
|
|
|
|
# # this container will send Telegram notifications if specified address doesn't have enough funds
|
|
|
|
# monitor_mainnet:
|
|
|
|
# image: peppersec/monitor_eth
|
|
|
|
# restart: always
|
|
|
|
# environment:
|
|
|
|
# TELEGRAM_NOTIFIER_BOT_TOKEN: ...
|
|
|
|
# TELEGRAM_NOTIFIER_CHAT_ID: ...
|
|
|
|
# ADDRESS: '0x0000000000000000000000000000000000000000'
|
|
|
|
# THRESHOLD: 0.5 # ETH
|
|
|
|
# RPC_URL: https://mainnet.infura.io
|
|
|
|
# BLOCK_EXPLORER: etherscan.io
|
|
|
|
|
|
|
|
# -------------------------------------------------- #
|
|
|
|
|
|
|
|
# ---------------------- BSC (Binance Smart Chain) ----------------------- #
|
|
|
|
|
|
|
|
bsc-server:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["bsc"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.bsc
|
|
|
|
environment:
|
|
|
|
NET_ID: 56
|
|
|
|
REDIS_URL: redis://redis/1
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
bsc-healthWatcher:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["bsc"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.bsc
|
|
|
|
environment:
|
|
|
|
NET_ID: 56
|
|
|
|
REDIS_URL: redis://redis/1
|
|
|
|
depends_on: [redis, bsc-server]
|
|
|
|
|
|
|
|
bsc-worker1:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["bsc"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.bsc
|
|
|
|
environment:
|
|
|
|
NET_ID: 56
|
|
|
|
REDIS_URL: redis://redis/1
|
|
|
|
depends_on: [redis, bsc-server]
|
|
|
|
|
|
|
|
# -------------------------------------------------- #
|
|
|
|
|
|
|
|
# ---------------------- Polygon (MATIC) --------------------- #
|
|
|
|
|
|
|
|
polygon-server:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["polygon"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.polygon
|
|
|
|
environment:
|
|
|
|
NET_ID: 137
|
|
|
|
REDIS_URL: redis://redis/2
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
polygon-healthWatcher:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["polygon"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.polygon
|
|
|
|
environment:
|
|
|
|
NET_ID: 137
|
|
|
|
REDIS_URL: redis://redis/2
|
|
|
|
depends_on: [redis, polygon-server]
|
|
|
|
|
|
|
|
polygon-worker1:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["polygon"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.polygon
|
|
|
|
environment:
|
|
|
|
NET_ID: 137
|
|
|
|
REDIS_URL: redis://redis/2
|
|
|
|
depends_on: [redis, polygon-server]
|
|
|
|
|
|
|
|
# -------------------------------------------------- #
|
|
|
|
|
|
|
|
# ---------------------- Gnosis (XDAI) ---------------------- #
|
|
|
|
|
|
|
|
gnosis-server:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["gnosis"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.gnosis
|
|
|
|
environment:
|
|
|
|
NET_ID: 100
|
|
|
|
REDIS_URL: redis://redis/3
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
gnosis-healthWatcher:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["gnosis"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.gnosis
|
|
|
|
environment:
|
|
|
|
NET_ID: 100
|
|
|
|
REDIS_URL: redis://redis/3
|
|
|
|
depends_on: [redis, gnosis-server]
|
|
|
|
|
|
|
|
gnosis-worker1:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["gnosis"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.gnosis
|
|
|
|
environment:
|
|
|
|
NET_ID: 100
|
|
|
|
REDIS_URL: redis://redis/3
|
|
|
|
depends_on: [redis, gnosis-server]
|
|
|
|
|
|
|
|
# -------------------------------------------------- #
|
|
|
|
|
|
|
|
# ---------------------- AVAX ---------------------- #
|
|
|
|
|
|
|
|
avax-server:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["avax"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.avax
|
|
|
|
environment:
|
|
|
|
NET_ID: 43114
|
|
|
|
REDIS_URL: redis://redis/4
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
avax-healthWatcher:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["avax"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.avax
|
|
|
|
environment:
|
|
|
|
NET_ID: 43114
|
|
|
|
REDIS_URL: redis://redis/4
|
|
|
|
depends_on: [redis, avax-server]
|
|
|
|
|
|
|
|
avax-worker1:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["avax"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.avax
|
|
|
|
environment:
|
|
|
|
NET_ID: 43114
|
|
|
|
REDIS_URL: redis://redis/4
|
|
|
|
depends_on: [redis, avax-server]
|
|
|
|
|
|
|
|
# -------------------------------------------------- #
|
|
|
|
|
|
|
|
# ---------------------- OP ------------------------ #
|
|
|
|
|
|
|
|
op-server:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["op"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.op
|
|
|
|
environment:
|
|
|
|
NET_ID: 10
|
|
|
|
REDIS_URL: redis://redis/5
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
op-healthWatcher:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["op"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.op
|
|
|
|
environment:
|
|
|
|
NET_ID: 10
|
|
|
|
REDIS_URL: redis://redis/5
|
|
|
|
depends_on: [redis, op-server]
|
|
|
|
|
|
|
|
op-worker1:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["op"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.op
|
|
|
|
environment:
|
|
|
|
NET_ID: 10
|
|
|
|
REDIS_URL: redis://redis/5
|
|
|
|
depends_on: [redis, op-server]
|
|
|
|
|
|
|
|
# -------------------------------------------------- #
|
|
|
|
|
|
|
|
# ---------------------- Arbitrum ----------------------- #
|
|
|
|
|
|
|
|
arb-server:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["arb"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.arb
|
|
|
|
environment:
|
|
|
|
NET_ID: 42161
|
|
|
|
REDIS_URL: redis://redis/6
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
arb-healthWatcher:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["arb"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.arb
|
|
|
|
environment:
|
|
|
|
NET_ID: 42161
|
|
|
|
REDIS_URL: redis://redis/6
|
|
|
|
depends_on: [redis, arb-server]
|
|
|
|
|
|
|
|
arb-worker1:
|
2023-07-24 17:36:17 +03:00
|
|
|
image: tornadocash/relayer:sidechain-v5
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["arb"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.arb
|
|
|
|
environment:
|
|
|
|
NET_ID: 42161
|
|
|
|
REDIS_URL: redis://redis/6
|
|
|
|
depends_on: [redis, arb-server]
|
|
|
|
|
|
|
|
# -------------------------------------------------- #
|
|
|
|
|
|
|
|
# ---------------------- Goerli (Ethereum Testnet) ---------------------- #
|
|
|
|
|
|
|
|
goerli-server:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["geth"]
|
|
|
|
restart: always
|
|
|
|
command: server
|
|
|
|
env_file: .env.goerli
|
|
|
|
environment:
|
|
|
|
NET_ID: 5
|
|
|
|
REDIS_URL: redis://redis/7
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on: [redis]
|
|
|
|
|
|
|
|
goerli-treeWatcher:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["goerli"]
|
|
|
|
restart: always
|
|
|
|
command: treeWatcher
|
|
|
|
env_file: .env.goerli
|
|
|
|
environment:
|
|
|
|
NET_ID: 5
|
|
|
|
REDIS_URL: redis://redis/7
|
|
|
|
depends_on: [redis, goerli-server]
|
|
|
|
|
|
|
|
goerli-priceWatcher:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["goerli"]
|
|
|
|
restart: always
|
|
|
|
command: priceWatcher
|
|
|
|
env_file: .env.goerli
|
|
|
|
environment:
|
|
|
|
NET_ID: 5
|
|
|
|
REDIS_URL: redis://redis/7
|
|
|
|
depends_on: [redis, goerli-server]
|
|
|
|
|
|
|
|
goerli-healthWatcher:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["goerli"]
|
|
|
|
restart: always
|
|
|
|
command: healthWatcher
|
|
|
|
env_file: .env.goerli
|
|
|
|
environment:
|
|
|
|
NET_ID: 5
|
|
|
|
REDIS_URL: redis://redis/7
|
|
|
|
depends_on: [redis, goerli-server]
|
|
|
|
|
|
|
|
goerli-worker1:
|
2023-08-28 11:52:33 +03:00
|
|
|
image: tornadocash/relayer:mainnet-v4
|
2023-07-13 21:02:05 +03:00
|
|
|
profiles: ["goerli"]
|
|
|
|
restart: always
|
|
|
|
command: worker
|
|
|
|
env_file: .env.goerli
|
|
|
|
environment:
|
|
|
|
NET_ID: 5
|
|
|
|
REDIS_URL: redis://redis/7
|
|
|
|
depends_on: [redis, goerli-server]
|
|
|
|
# -------------------------------------------------- #
|
2020-11-04 19:01:51 +03:00
|
|
|
|
2019-12-13 15:32:09 +03:00
|
|
|
volumes:
|
2023-07-13 21:02:05 +03:00
|
|
|
conf:
|
|
|
|
vhost:
|
|
|
|
html:
|
|
|
|
certs:
|
|
|
|
redis:
|