tornado-relayer/docker-compose.yml

124 lines
2.9 KiB
YAML
Raw Normal View History

2019-12-05 22:08:54 +03:00
version: '2'
2019-12-12 23:04:19 +03:00
2019-12-05 22:08:54 +03:00
services:
2023-03-19 02:01:06 +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 ----------------------- #
eth-server:
2023-03-19 22:43:40 +03:00
build: .
image: tornadocash/relayer:mainnet-v4
2019-12-05 22:08:54 +03:00
restart: always
2020-10-03 10:02:38 +03:00
command: server
env_file: .env
2019-12-05 22:08:54 +03:00
environment:
2023-03-19 02:01:06 +03:00
NET_ID: 1
2019-12-13 16:14:50 +03:00
REDIS_URL: redis://redis/0
nginx_proxy_read_timeout: 600
depends_on: [redis]
2019-12-13 16:14:50 +03:00
eth-treeWatcher:
image: tornadocash/relayer:mainnet-v4
restart: always
command: treeWatcher
env_file: .env
environment:
NET_ID: 1
REDIS_URL: redis://redis/0
depends_on: [redis, eth-server]
2020-10-03 10:02:38 +03:00
2023-03-19 02:01:06 +03:00
eth-priceWatcher:
image: tornadocash/relayer:mainnet-v4
2020-10-03 10:02:38 +03:00
restart: always
2020-10-14 22:10:34 +03:00
command: priceWatcher
env_file: .env
2020-10-03 10:02:38 +03:00
environment:
2023-03-19 02:01:06 +03:00
NET_ID: 1
2020-10-14 22:10:34 +03:00
REDIS_URL: redis://redis/0
depends_on: [redis, eth-server]
2023-03-19 02:01:06 +03:00
eth-healthWatcher:
image: tornadocash/relayer:mainnet-v4
2021-02-10 00:30:15 +03:00
restart: always
command: healthWatcher
env_file: .env
2021-02-10 00:30:15 +03:00
environment:
2023-03-19 02:01:06 +03:00
NET_ID: 1
2021-02-10 00:30:15 +03:00
REDIS_URL: redis://redis/0
depends_on: [redis, eth-server]
2021-02-10 00:30:15 +03:00
2023-03-19 02:01:06 +03:00
eth-worker1:
image: tornadocash/relayer:mainnet-v4
2020-10-03 10:02:38 +03:00
restart: always
command: worker
env_file: .env
2020-10-03 10:02:38 +03:00
environment:
2023-03-19 02:01:06 +03:00
NET_ID: 1
2020-10-14 22:10:34 +03:00
REDIS_URL: redis://redis/0
depends_on: [redis, eth-server]
2020-10-14 22:10:34 +03:00
2020-11-04 19:01:51 +03:00
# worker2:
# image: tornadocash/relayer:mainnet-v4
2020-11-04 19:01:51 +03:00
# restart: always
# command: worker
# env_file: .env
# environment:
# PRIVATE_KEY: qwe
# REDIS_URL: redis://redis/0
2020-12-30 23:35:33 +03: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 10:18:28 +03:00
# tor:
# image: strm/tor
# restart: always
2020-12-30 23:35:33 +03:00
# depends_on: [server]
2020-11-29 10:18:28 +03:00
# environment:
# LISTEN_PORT: 80
2020-12-30 23:35:33 +03:00
# REDIRECT: server:8000
2020-11-29 10:18:28 +03: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-----