2026-10-09 21:29:59 +07:00
|
|
|
services:
|
|
|
|
|
dong-site:
|
|
|
|
|
image: nginx:alpine
|
|
|
|
|
container_name: dong-site
|
|
|
|
|
restart: unless-stopped
|
2026-10-22 09:55:21 +07:00
|
|
|
environment:
|
|
|
|
|
# The write token for the /api/content/ proxy (spec-v4 §6.2). Set it in
|
|
|
|
|
# the local .env; NGINX_ENVSUBST_FILTER restricts the template
|
|
|
|
|
# substitution to this variable only, so $uri/$host stay nginx runtime
|
|
|
|
|
# variables.
|
|
|
|
|
GITEA_TOKEN: ${GITEA_TOKEN}
|
|
|
|
|
NGINX_ENVSUBST_FILTER: GITEA_TOKEN
|
2026-10-09 21:29:59 +07:00
|
|
|
volumes:
|
|
|
|
|
- ./dist:/usr/share/nginx/html:ro
|
2026-10-22 09:55:21 +07:00
|
|
|
# Mounted as a template: the image's envsubst step renders it to
|
|
|
|
|
# /etc/nginx/conf.d/default.conf with GITEA_TOKEN filled in.
|
|
|
|
|
- ./nginx.conf:/etc/nginx/templates/default.conf.template:ro
|
|
|
|
|
- ./deploy/htpasswd:/etc/nginx/htpasswd:ro
|
2026-10-09 21:29:59 +07:00
|
|
|
networks:
|
|
|
|
|
- docker-network
|
|
|
|
|
networks:
|
|
|
|
|
docker-network:
|
|
|
|
|
external: true
|