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:
|
2020-10-14 22:10:34 +03:00
|
|
|
server:
|
2019-12-05 22:08:54 +03:00
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
2020-10-03 10:02:38 +03:00
|
|
|
command: server
|
2020-10-14 22:10:34 +03:00
|
|
|
env_file: .env
|
2019-12-05 22:08:54 +03:00
|
|
|
environment:
|
2020-11-04 19:01:51 +03:00
|
|
|
VIRTUAL_HOST: example.duckdns.org
|
|
|
|
LETSENCRYPT_HOST: example.duckdns.org
|
2019-12-13 16:14:50 +03:00
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
nginx_proxy_read_timeout: 600
|
2020-11-04 22:23:14 +03:00
|
|
|
depends_on: [redis]
|
2019-12-13 16:14:50 +03:00
|
|
|
|
2020-10-14 22:10:34 +03:00
|
|
|
treeWatcher:
|
2019-12-13 16:14:50 +03:00
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
2020-10-14 22:10:34 +03:00
|
|
|
command: treeWatcher
|
|
|
|
env_file: .env
|
2019-12-13 16:14:50 +03:00
|
|
|
environment:
|
2020-10-14 22:10:34 +03:00
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 22:23:14 +03:00
|
|
|
depends_on: [redis]
|
2020-10-03 10:02:38 +03:00
|
|
|
|
2020-10-14 22:10:34 +03:00
|
|
|
priceWatcher:
|
2020-10-03 10:02:38 +03:00
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
2020-10-14 22:10:34 +03:00
|
|
|
command: priceWatcher
|
|
|
|
env_file: .env
|
2020-10-03 10:02:38 +03:00
|
|
|
environment:
|
2020-10-14 22:10:34 +03:00
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 22:23:14 +03:00
|
|
|
depends_on: [redis]
|
2020-10-03 10:02:38 +03:00
|
|
|
|
2020-10-14 22:10:34 +03:00
|
|
|
worker1:
|
2020-10-03 10:02:38 +03:00
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
|
|
|
command: worker
|
2020-10-14 22:10:34 +03:00
|
|
|
env_file: .env
|
2020-10-03 10:02:38 +03:00
|
|
|
environment:
|
2020-10-14 22:10:34 +03:00
|
|
|
REDIS_URL: redis://redis/0
|
2020-11-04 22:23:14 +03:00
|
|
|
depends_on: [redis]
|
2020-10-14 22:10:34 +03:00
|
|
|
|
2020-11-04 19:01:51 +03:00
|
|
|
# worker2:
|
|
|
|
# image: tornadocash/relayer
|
|
|
|
# restart: always
|
|
|
|
# command: worker
|
|
|
|
# env_file: .env
|
|
|
|
# environment:
|
|
|
|
# PRIVATE_KEY: qwe
|
|
|
|
# REDIS_URL: redis://redis/0
|
2019-12-13 15:32:09 +03:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
restart: always
|
|
|
|
command: [redis-server, --appendonly, 'yes']
|
|
|
|
volumes:
|
|
|
|
- redis:/data
|
|
|
|
|
2020-11-04 19:01:51 +03: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 15:32:09 +03:00
|
|
|
volumes:
|
2020-11-04 19:01:51 +03:00
|
|
|
conf:
|
|
|
|
vhost:
|
|
|
|
html:
|
|
|
|
certs:
|
2020-01-03 20:58:54 +03:00
|
|
|
redis:
|