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:
|
|
|
|
kovan:
|
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
VIRTUAL_HOST: example.duckdns.org
|
|
|
|
LETSENCRYPT_HOST: example.duckdns.org
|
|
|
|
NET_ID: 42
|
|
|
|
RPC_URL: https://kovan.infura.io
|
2020-02-11 20:49:25 -05:00
|
|
|
# ORACLE_RPC_URL should always point to the mainnet
|
|
|
|
ORACLE_RPC_URL: https://mainnet.infura.io
|
2019-12-09 13:47:56 -05:00
|
|
|
# without 0x prefix
|
2019-12-13 07:32:09 -05:00
|
|
|
PRIVATE_KEY:
|
2019-12-05 14:08:54 -05:00
|
|
|
# 2.5 means 2.5%
|
|
|
|
RELAYER_FEE: 2.5
|
2019-12-13 08:14:50 -05:00
|
|
|
REDIS_URL: redis://redis/0
|
|
|
|
nginx_proxy_read_timeout: 600
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
|
|
|
|
mainnet:
|
|
|
|
image: tornadocash/relayer
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
VIRTUAL_HOST: example2.duckdns.org
|
|
|
|
LETSENCRYPT_HOST: example2.duckdns.org
|
|
|
|
NET_ID: 1
|
|
|
|
RPC_URL: https://mainnet.infura.io
|
2020-02-11 20:49:25 -05:00
|
|
|
# ORACLE_RPC_URL should always point to the mainnet
|
|
|
|
ORACLE_RPC_URL: https://mainnet.infura.io
|
2019-12-13 08:14:50 -05:00
|
|
|
# without 0x prefix
|
|
|
|
PRIVATE_KEY:
|
|
|
|
# 2.5 means 2.5%
|
|
|
|
RELAYER_FEE: 2.5
|
|
|
|
REDIS_URL: redis://redis/1
|
2019-12-13 07:32:09 -05:00
|
|
|
nginx_proxy_read_timeout: 600
|
2019-12-12 15:04:19 -05:00
|
|
|
depends_on:
|
|
|
|
- redis
|
2019-12-13 07:32:09 -05:00
|
|
|
|
|
|
|
redis:
|
|
|
|
image: redis
|
|
|
|
restart: always
|
|
|
|
command: [redis-server, --appendonly, 'yes']
|
|
|
|
volumes:
|
|
|
|
- redis:/data
|
|
|
|
|
2019-12-05 14:08:54 -05:00
|
|
|
nginx:
|
2019-12-13 07:32:09 -05:00
|
|
|
image: nginx:alpine
|
|
|
|
container_name: nginx
|
2019-12-05 14:08:54 -05:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
2019-12-13 07:32:09 -05:00
|
|
|
- conf:/etc/nginx/conf.d
|
|
|
|
- vhost:/etc/nginx/vhost.d
|
|
|
|
- html:/usr/share/nginx/html
|
|
|
|
- certs:/etc/nginx/certs
|
2020-01-03 12:58:54 -05:00
|
|
|
logging:
|
|
|
|
driver: none
|
2019-12-13 07:32:09 -05:00
|
|
|
|
|
|
|
dockergen:
|
|
|
|
image: poma/docker-gen
|
|
|
|
container_name: dockergen
|
2019-12-05 14:08:54 -05:00
|
|
|
restart: always
|
2019-12-13 07:32:09 -05:00
|
|
|
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
|
2019-12-05 14:08:54 -05:00
|
|
|
volumes_from:
|
|
|
|
- nginx
|
|
|
|
volumes:
|
2019-12-12 05:58:58 -05:00
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
2019-12-13 07:32:09 -05:00
|
|
|
|
|
|
|
letsencrypt:
|
|
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
|
|
container_name: letsencrypt
|
2019-12-12 15:04:19 -05:00
|
|
|
restart: always
|
2019-12-13 07:32:09 -05:00
|
|
|
environment:
|
|
|
|
NGINX_DOCKER_GEN_CONTAINER: dockergen
|
|
|
|
volumes_from:
|
|
|
|
- nginx
|
|
|
|
- dockergen
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
conf:
|
|
|
|
vhost:
|
|
|
|
html:
|
|
|
|
certs:
|
2020-01-03 12:58:54 -05:00
|
|
|
redis:
|