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:
|
2020-10-14 15:10:34 -04:00
|
|
|
server:
|
2020-12-18 18:16:09 -05:00
|
|
|
image: tornadocash/relayer:mining
|
2019-12-05 14:08:54 -05:00
|
|
|
restart: always
|
2020-10-03 03:02:38 -04:00
|
|
|
command: server
|
2020-10-14 15:10:34 -04:00
|
|
|
env_file: .env
|
2019-12-05 14:08:54 -05:00
|
|
|
environment:
|
2019-12-13 08:14:50 -05:00
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
nginx_proxy_read_timeout: 600
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2019-12-13 08:14:50 -05:00
|
|
|
|
2020-10-14 15:10:34 -04:00
|
|
|
treeWatcher:
|
2020-12-18 18:16:09 -05:00
|
|
|
image: tornadocash/relayer:mining
|
2019-12-13 08:14:50 -05:00
|
|
|
restart: always
|
2020-10-14 15:10:34 -04:00
|
|
|
command: treeWatcher
|
|
|
|
env_file: .env
|
2019-12-13 08:14:50 -05:00
|
|
|
environment:
|
2020-10-14 15:10:34 -04:00
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2020-10-03 03:02:38 -04:00
|
|
|
|
2020-10-14 15:10:34 -04:00
|
|
|
priceWatcher:
|
2020-12-18 18:16:09 -05:00
|
|
|
image: tornadocash/relayer:mining
|
2020-10-03 03:02:38 -04:00
|
|
|
restart: always
|
2020-10-14 15:10:34 -04:00
|
|
|
command: priceWatcher
|
|
|
|
env_file: .env
|
2020-10-03 03:02:38 -04:00
|
|
|
environment:
|
2020-10-14 15:10:34 -04:00
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2020-10-03 03:02:38 -04:00
|
|
|
|
2020-10-14 15:10:34 -04:00
|
|
|
worker1:
|
2020-12-18 18:16:09 -05:00
|
|
|
image: tornadocash/relayer:mining
|
2020-10-03 03:02:38 -04:00
|
|
|
restart: always
|
|
|
|
command: worker
|
2020-10-14 15:10:34 -04:00
|
|
|
env_file: .env
|
2020-10-03 03:02:38 -04:00
|
|
|
environment:
|
2020-10-14 15:10:34 -04:00
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 14:23:14 -05:00
|
|
|
depends_on: [redis]
|
2020-10-14 15:10:34 -04:00
|
|
|
|
2020-11-04 11:01:51 -05:00
|
|
|
# worker2:
|
2020-12-18 18:16:09 -05:00
|
|
|
# image: tornadocash/relayer:mining
|
2020-11-04 11:01:51 -05:00
|
|
|
# restart: always
|
|
|
|
# command: worker
|
|
|
|
# env_file: .env
|
|
|
|
# environment:
|
|
|
|
# PRIVATE_KEY: qwe
|
|
|
|
# REDIS_URL: redis://redis/0
|
2019-12-13 07:32:09 -05:00
|
|
|
|
2020-11-29 02:18:28 -05:00
|
|
|
# # this container will proxy *.onion domain to the mainnet container
|
|
|
|
# tor:
|
|
|
|
# image: strm/tor
|
|
|
|
# restart: always
|
|
|
|
# depends_on: [mainnet]
|
|
|
|
# environment:
|
|
|
|
# LISTEN_PORT: 80
|
|
|
|
# REDIRECT: mainnet: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
|
|
|
|
|
2019-12-13 07:32:09 -05:00
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
restart: always
|
|
|
|
command: [redis-server, --appendonly, 'yes']
|
|
|
|
volumes:
|
|
|
|
- redis:/data
|
|
|
|
|
2020-11-04 11:01:51 -05:00
|
|
|
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
|
|
|
|
|
2019-12-13 07:32:09 -05:00
|
|
|
volumes:
|
2020-11-04 11:01:51 -05:00
|
|
|
conf:
|
|
|
|
vhost:
|
|
|
|
html:
|
|
|
|
certs:
|
2020-01-03 12:58:54 -05:00
|
|
|
redis:
|