add frontend and increase timeout for nginx

This commit is contained in:
Roman Storm 2020-02-05 23:20:01 -08:00
parent 5c53523e0d
commit f856c8eb19
2 changed files with 43 additions and 0 deletions

View File

@ -7,6 +7,7 @@ services:
VIRTUAL_HOST: ceremony.tornado.cash
LETSENCRYPT_HOST: ceremony.tornado.cash
nginx_client_max_body_size: 50m
nginx_proxy_read_timeout: 600s
MYSQL_HOST: mysql
env_file: .env
depends_on:

View File

@ -0,0 +1,42 @@
version: '2.1'
services:
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
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
# environment:
# NGINX_CLIENT_MAX_BODY_SIZE: 30M
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: