mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 21:23:45 +01:00
38 lines
820 B
YAML
38 lines
820 B
YAML
services:
|
|
nginx:
|
|
image: nginx:stable-alpine
|
|
container_name: nginx
|
|
hostname: nginx
|
|
restart: always
|
|
|
|
volumes:
|
|
- ${SSL_KEY_FILE}:/certs/nginx_key.pem:ro
|
|
- ${SSL_CERT_FILE}:/certs/nginx_certificate.pem:ro
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
- /var/www/acme:/var/www/acme:ro
|
|
- ./static:/var/www/static
|
|
|
|
ports:
|
|
- "0.0.0.0:443:443"
|
|
- "0.0.0.0:80:80"
|
|
- ":::443:443"
|
|
- ":::80:80"
|
|
|
|
environment:
|
|
NGINX_WORKER_PROCESSES: "4"
|
|
NGINX_WORKER_CONNECTIONS: "768"
|
|
|
|
networks:
|
|
- overleaf-network
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "curl -fsI --connect-timeout 10 http://localhost || exit 1"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 5
|
|
start_period: 60s
|
|
|
|
networks:
|
|
overleaf-network:
|
|
external: true
|