Fix docker overrides for nginx config.

This commit is contained in:
febux 2026-08-21 22:34:54 +03:00
parent 58bc2a0528
commit bd21f130e8
2 changed files with 5 additions and 1 deletions

View file

@ -11,4 +11,6 @@ services:
ports: ports:
- "127.0.0.1:8081:80" - "127.0.0.1:8081:80"
volumes: volumes:
# Same target path as the base file's TLS template bind — overrides it,
# so only ONE template is rendered (both define `upstream api`).
- ./deploy/nginx/templates/contract-check-http.conf.template:/etc/nginx/templates/contract-check.conf.template:ro - ./deploy/nginx/templates/contract-check-http.conf.template:/etc/nginx/templates/contract-check.conf.template:ro

View file

@ -436,7 +436,9 @@ services:
- "80:80" - "80:80"
- "443:443" - "443:443"
volumes: volumes:
- ./deploy/nginx/templates:/etc/nginx/templates:ro # Mount exactly ONE template — rendering both would duplicate `upstream api`.
# The VPS override (deploy/vps/) swaps in contract-check-http.conf.template here.
- ./deploy/nginx/templates/contract-check.conf.template:/etc/nginx/templates/contract-check.conf.template:ro
- certbot-data:/etc/letsencrypt:ro - certbot-data:/etc/letsencrypt:ro
- certbot-webroot:/var/www/certbot:ro - certbot-webroot:/var/www/certbot:ro
environment: environment: