tornado-relayer/docker-compose.yml

70 lines
1.5 KiB
YAML
Raw Normal View History

2019-12-05 20:08:54 +01:00
version: '2'
2019-12-12 21:04:19 +01:00
2019-12-05 20:08:54 +01: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
2019-12-09 19:47:56 +01:00
# without 0x prefix
PRIVATE_KEY:
2019-12-05 20:08:54 +01:00
# 2.5 means 2.5%
RELAYER_FEE: 2.5
REDIS_URL: redis
nginx_proxy_read_timeout: 600
2019-12-12 21:04:19 +01:00
depends_on:
- redis
redis:
image: redis
restart: always
command: [redis-server, --appendonly, 'yes']
volumes:
- redis:/data
2019-12-05 20:08:54 +01:00
nginx:
image: nginx:alpine
container_name: nginx
2019-12-05 20:08:54 +01:00
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
labels:
co.elastic.logs/module: nginx
co.elastic.logs/fileset.stdout: access
co.elastic.logs/fileset.stderr: error
dockergen:
image: poma/docker-gen
container_name: dockergen
2019-12-05 20:08:54 +01:00
restart: always
command: -notify-sighup nginx -watch /etc/docker-gen/templates/nginx.tmpl /etc/nginx/conf.d/default.conf
2019-12-05 20:08:54 +01:00
volumes_from:
- nginx
volumes:
2019-12-12 11:58:58 +01:00
- /var/run/docker.sock:/var/run/docker.sock:ro
letsencrypt:
image: jrcs/letsencrypt-nginx-proxy-companion
container_name: letsencrypt
2019-12-12 21:04:19 +01:00
restart: always
environment:
NGINX_DOCKER_GEN_CONTAINER: dockergen
volumes_from:
- nginx
- dockergen
volumes:
conf:
vhost:
html:
certs:
redis: