1fcd5bdb5b
A VPS running only ExecuteR puts its edge on the standard ports; the app services stay on their upstream ports on loopback. The HTTP redirect and the deploy summary name the HTTPS port only when it isn't 443. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
2.1 KiB
YAML
55 lines
2.1 KiB
YAML
# Optional in-stack reverse proxy.
|
|
#
|
|
# docker compose -f docker-compose.yml -f docker-compose.proxy.yml up -d
|
|
# ./scripts/deploy.sh --with-proxy
|
|
#
|
|
# NOT included by default: most deployments already have an edge proxy (NPM,
|
|
# Traefik, Caddy, an existing nginx). Use this only when you want the stack to
|
|
# own its own TLS edge.
|
|
#
|
|
# Provide certificates at:
|
|
# ${STACK_BINDMOUNTROOT}/${STACK_NAME}/Proxy/Certs/fullchain.pem
|
|
# ${STACK_BINDMOUNTROOT}/${STACK_NAME}/Proxy/Certs/private.key
|
|
# and a site config at:
|
|
# ${STACK_BINDMOUNTROOT}/${STACK_NAME}/Proxy/Config/executer.conf
|
|
# (deploy.sh writes one derived from src/Infra/nginx/executer.conf).
|
|
|
|
services:
|
|
proxy:
|
|
image: '${NGINX_IMAGE:-nginx}:${NGINX_VERSION:-1.29-alpine}'
|
|
container_name: EXECUTER-PROXY-00001
|
|
restart: unless-stopped
|
|
stop_signal: SIGQUIT
|
|
stop_grace_period: 30s
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
webui:
|
|
condition: service_started
|
|
logging:
|
|
driver: 'local'
|
|
networks:
|
|
EXTERNAL:
|
|
INTERNAL:
|
|
ports:
|
|
- '${PROXY_BIND_ADDRESS:-0.0.0.0}:${PROXY_HTTP_PORT:-80}:80'
|
|
- '${PROXY_BIND_ADDRESS:-0.0.0.0}:${PROXY_HTTPS_PORT:-443}:443'
|
|
volumes:
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- "${STACK_BINDMOUNTROOT:-/mnt/data/docker/stacks}/${STACK_NAME:-stk-executer-00001}/Proxy/Config:/etc/nginx/conf.d:ro"
|
|
- "${STACK_BINDMOUNTROOT:-/mnt/data/docker/stacks}/${STACK_NAME:-stk-executer-00001}/Proxy/Certs:/etc/nginx/ssl:ro"
|
|
- "${STACK_BINDMOUNTROOT:-/mnt/data/docker/stacks}/${STACK_NAME:-stk-executer-00001}/Proxy/Logs:/var/log/nginx:rw"
|
|
- "${STACK_BINDMOUNTROOT:-/mnt/data/docker/stacks}/${STACK_NAME:-stk-executer-00001}/Proxy/Acme:/var/www/acme:rw"
|
|
healthcheck:
|
|
test: ["CMD", "nginx", "-t"]
|
|
start_period: 15s
|
|
interval: 30s
|
|
retries: 3
|
|
timeout: 5s
|
|
labels:
|
|
com.centurylinklabs.watchtower.enable: '${PROXY_ENABLEAUTOMATICUPDATES:-false}'
|
|
diun.enable: '${PROXY_ENABLEAUTOMATICUPDATES:-false}'
|
|
wud.watch: '${PROXY_ENABLEAUTOMATICUPDATES:-false}'
|
|
dockhand.update: '${PROXY_ENABLEAUTOMATICUPDATES:-false}'
|