mirror of
https://github.com/tornadocash/tornado-root-updater.git
synced 2024-12-04 23:15:05 +01:00
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
app:
|
|
image: tornadocash/tornado-root-updater:server
|
|
depends_on: [redis]
|
|
restart: always
|
|
env_file: .env
|
|
environment:
|
|
REDIS_URL: redis://redis/0
|
|
|
|
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
|
|
|
|
volumes:
|
|
conf:
|
|
vhost:
|
|
html:
|
|
certs:
|
|
redis:
|