classic-relayer/docker-compose.yml

460 lines
11 KiB
YAML
Raw Normal View History

2019-12-05 14:08:54 -05:00
version: '2'
2019-12-12 15:04:19 -05:00
2019-12-05 14:08:54 -05:00
services:
2023-03-18 19:01:06 -04:00
redis:
image: redis
restart: always
command: [ redis-server, --appendonly, 'yes' ]
2023-03-18 19:01:06 -04:00
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 ----------------------- #
2023-03-18 19:01:06 -04:00
eth-server:
2023-03-19 15:43:40 -04:00
build: .
image: tornadorelayer:mainnet
2023-03-18 19:01:06 -04:00
profiles: [ 'eth' ]
2019-12-05 14:08:54 -05:00
restart: always
2020-10-03 03:02:38 -04:00
command: server
env_file: .env.eth
2019-12-05 14:08:54 -05:00
environment:
2023-03-18 19:01:06 -04:00
NET_ID: 1
2019-12-13 08:14:50 -05:00
REDIS_URL: redis://redis/0
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
2019-12-13 08:14:50 -05:00
eth-treeWatcher:
image: tornadorelayer:mainnet
profiles: [ 'eth' ]
restart: always
command: treeWatcher
env_file: .env.eth
environment:
NET_ID: 1
REDIS_URL: redis://redis/0
depends_on: [ redis, eth-server ]
2020-10-03 03:02:38 -04:00
2023-03-18 19:01:06 -04:00
eth-priceWatcher:
image: tornadorelayer:mainnet
2023-03-18 19:01:06 -04:00
profiles: [ 'eth' ]
2020-10-03 03:02:38 -04:00
restart: always
2020-10-14 15:10:34 -04:00
command: priceWatcher
env_file: .env.eth
2020-10-03 03:02:38 -04:00
environment:
2023-03-18 19:01:06 -04:00
NET_ID: 1
2020-10-14 15:10:34 -04:00
REDIS_URL: redis://redis/0
2023-03-19 15:43:40 -04:00
depends_on: [ redis, eth-server ]
2023-03-18 19:01:06 -04:00
eth-healthWatcher:
image: tornadorelayer:mainnet
2023-03-18 19:01:06 -04:00
profiles: [ 'eth' ]
2021-02-09 16:30:15 -05:00
restart: always
command: healthWatcher
env_file: .env.eth
2021-02-09 16:30:15 -05:00
environment:
2023-03-18 19:01:06 -04:00
NET_ID: 1
2021-02-09 16:30:15 -05:00
REDIS_URL: redis://redis/0
2023-03-19 15:43:40 -04:00
depends_on: [ redis, eth-server ]
2021-02-09 16:30:15 -05:00
2023-03-18 19:01:06 -04:00
eth-worker1:
image: tornadorelayer:mainnet
2023-03-18 19:01:06 -04:00
profiles: [ 'eth' ]
2020-10-03 03:02:38 -04:00
restart: always
command: worker
env_file: .env.eth
2020-10-03 03:02:38 -04:00
environment:
2023-03-18 19:01:06 -04:00
NET_ID: 1
2020-10-14 15:10:34 -04:00
REDIS_URL: redis://redis/0
2023-03-19 15:43:40 -04:00
depends_on: [ redis, eth-server ]
2020-10-14 15:10:34 -04:00
# # 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:
# image: tornadorelayer:mainnet
# profiles: [ 'eth' ]
2020-11-04 11:01:51 -05:00
# restart: always
# command: worker
# env_file: .env2.eth
2020-11-04 11:01:51 -05:00
# environment:
# REDIS_URL: redis://redis/0
2020-12-30 15:35:33 -05:00
# # 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
2020-11-29 02:18:28 -05:00
# tor:
# image: strm/tor
# restart: always
2020-12-30 15:35:33 -05:00
# depends_on: [server]
2020-11-29 02:18:28 -05:00
# environment:
# LISTEN_PORT: 80
2020-12-30 15:35:33 -05:00
# REDIRECT: server:8000
2020-11-29 02:18:28 -05:00
# # 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
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
# ---------------------- BSC (Binance Smart Chain) ----------------------- #
2023-03-18 19:01:06 -04:00
bsc-server:
image: tornadorelayer:sidechain
profiles: [ 'bsc' ]
restart: always
2023-03-18 19:01:06 -04:00
command: server
env_file: .env.bsc
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 56
REDIS_URL: redis://redis/1
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
bsc-healthWatcher:
image: tornadorelayer:sidechain
profiles: [ 'bsc' ]
2020-11-04 11:01:51 -05:00
restart: always
2023-03-18 19:01:06 -04:00
command: healthWatcher
env_file: .env.bsc
2020-11-04 11:01:51 -05:00
environment:
2023-03-18 19:01:06 -04:00
NET_ID: 56
REDIS_URL: redis://redis/1
depends_on: [ redis, bsc-server ]
2023-03-18 19:01:06 -04:00
bsc-worker1:
image: tornadorelayer:sidechain
profiles: [ 'bsc' ]
2023-03-18 19:01:06 -04:00
restart: always
command: worker
env_file: .env.bsc
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 56
REDIS_URL: redis://redis/1
depends_on: [ redis, bsc-server ]
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
# ---------------------- Polygon (MATIC) --------------------- #
2023-03-18 19:01:06 -04:00
polygon-server:
image: tornadorelayer:sidechain
profiles: [ 'polygon' ]
2023-03-18 19:01:06 -04:00
restart: always
command: server
env_file: .env.polygon
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 137
REDIS_URL: redis://redis/2
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
2023-03-18 19:01:06 -04:00
polygon-healthWatcher:
image: tornadorelayer:sidechain
profiles: [ 'polygon' ]
2023-03-18 19:01:06 -04:00
restart: always
command: healthWatcher
env_file: .env.polygon
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 137
REDIS_URL: redis://redis/2
depends_on: [ redis, polygon-server ]
2023-03-18 19:01:06 -04:00
polygon-worker1:
image: tornadorelayer:sidechain
profiles: [ 'polygon' ]
2023-03-18 19:01:06 -04:00
restart: always
command: worker
env_file: .env.polygon
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 137
REDIS_URL: redis://redis/2
depends_on: [ redis, polygon-server ]
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
# ---------------------- Gnosis (XDAI) ---------------------- #
2023-03-18 19:01:06 -04:00
gnosis-server:
image: tornadorelayer:sidechain
profiles: [ 'gnosis' ]
2023-03-18 19:01:06 -04:00
restart: always
command: server
env_file: .env.gnosis
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 100
REDIS_URL: redis://redis/3
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
2023-03-18 19:01:06 -04:00
gnosis-healthWatcher:
image: tornadorelayer:sidechain
profiles: [ 'gnosis' ]
2023-03-18 19:01:06 -04:00
restart: always
command: healthWatcher
env_file: .env.gnosis
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 100
REDIS_URL: redis://redis/3
depends_on: [ redis, gnosis-server ]
2023-03-18 19:01:06 -04:00
gnosis-worker1:
image: tornadorelayer:sidechain
profiles: [ 'gnosis' ]
2023-03-18 19:01:06 -04:00
restart: always
command: worker
env_file: .env.gnosis
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 100
REDIS_URL: redis://redis/3
depends_on: [ redis, gnosis-server ]
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
# ---------------------- AVAX ---------------------- #
avax-server:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'avax' ]
restart: always
command: server
env_file: .env.avax
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 43114
REDIS_URL: redis://redis/4
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
2023-03-18 19:01:06 -04:00
avax-healthWatcher:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'avax' ]
restart: always
command: healthWatcher
env_file: .env.avax
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 43114
REDIS_URL: redis://redis/4
2023-03-19 15:43:40 -04:00
depends_on: [ redis, avax-server ]
2023-03-18 19:01:06 -04:00
avax-worker1:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'avax' ]
restart: always
command: worker
env_file: .env.avax
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 43114
REDIS_URL: redis://redis/4
2023-03-19 15:43:40 -04:00
depends_on: [ redis, avax-server ]
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
# ---------------------- OP ------------------------ #
op-server:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'op' ]
restart: always
command: server
env_file: .env.op
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 10
REDIS_URL: redis://redis/5
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
2023-03-18 19:01:06 -04:00
op-healthWatcher:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'op' ]
restart: always
command: healthWatcher
env_file: .env.op
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 10
REDIS_URL: redis://redis/5
2023-03-19 15:43:40 -04:00
depends_on: [ redis, op-server ]
2023-03-18 19:01:06 -04:00
op-worker1:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'op' ]
restart: always
command: worker
env_file: .env.op
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 10
REDIS_URL: redis://redis/5
2023-03-19 15:43:40 -04:00
depends_on: [ redis, op-server ]
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
# ---------------------- Arbitrum ----------------------- #
2023-03-18 19:01:06 -04:00
arb-server:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'arb' ]
restart: always
command: server
env_file: .env.arb
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 42161
REDIS_URL: redis://redis/6
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
2023-03-18 19:01:06 -04:00
arb-healthWatcher:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'arb' ]
restart: always
command: healthWatcher
env_file: .env.arb
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 42161
REDIS_URL: redis://redis/6
2023-03-19 15:43:40 -04:00
depends_on: [ redis, arb-server ]
2023-03-18 19:01:06 -04:00
arb-worker1:
image: tornadorelayer:sidechain
2023-03-18 19:01:06 -04:00
profiles: [ 'arb' ]
restart: always
command: worker
env_file: .env.arb
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 42161
REDIS_URL: redis://redis/6
2023-03-19 15:43:40 -04:00
depends_on: [ redis, arb-server ]
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
# ---------------------- Goerli (Ethereum Testnet) ---------------------- #
2023-03-18 19:01:06 -04:00
goerli-server:
image: tornadorelayer:mainnet
2023-03-18 19:01:06 -04:00
profiles: [ 'geth' ]
restart: always
command: server
env_file: .env.goerli
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 5
REDIS_URL: redis://redis/7
nginx_proxy_read_timeout: 600
2023-03-19 15:43:40 -04:00
depends_on: [ redis ]
2023-03-18 19:01:06 -04:00
goerli-treeWatcher:
image: tornadorelayer:mainnet
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:
image: tornadorelayer:mainnet
profiles: [ 'goerli' ]
2023-03-18 19:01:06 -04:00
restart: always
command: priceWatcher
env_file: .env.goerli
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 5
REDIS_URL: redis://redis/7
depends_on: [ redis, goerli-server ]
2023-03-18 19:01:06 -04:00
goerli-healthWatcher:
image: tornadorelayer:mainnet
profiles: [ 'goerli' ]
2023-03-18 19:01:06 -04:00
restart: always
command: healthWatcher
env_file: .env.goerli
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 5
REDIS_URL: redis://redis/7
depends_on: [ redis, goerli-server ]
2023-03-18 19:01:06 -04:00
goerli-worker1:
image: tornadorelayer:mainnet
profiles: [ 'goerli' ]
2023-03-18 19:01:06 -04:00
restart: always
command: worker
env_file: .env.goerli
2023-03-18 19:01:06 -04:00
environment:
NET_ID: 5
REDIS_URL: redis://redis/7
depends_on: [ redis, goerli-server ]
2023-03-18 19:01:06 -04:00
# -------------------------------------------------- #
2020-11-04 11:01:51 -05:00
volumes:
2020-11-04 11:01:51 -05:00
conf:
vhost:
html:
certs:
2020-01-03 12:58:54 -05:00
redis: