34 lines
772 B
YAML
34 lines
772 B
YAML
services:
|
|
site:
|
|
image: nginx:1.30.7
|
|
networks:
|
|
- proxy
|
|
configs:
|
|
- source: site_conf
|
|
target: /etc/nginx/conf.d/default.conf
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost/connector?go-get=1"]
|
|
interval: 10s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 15s
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "caddy_0=https://${DOMAIN}"
|
|
- "caddy_0.reverse_proxy={{upstreams 80}}"
|
|
- "caddy_1=${REDIRECT_DOMAINS}"
|
|
- "caddy_1.redir=https://${DOMAIN}{uri}"
|
|
- "caddy_1.tls=force_automate"
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
configs:
|
|
site_conf:
|
|
name: ${STACK_NAME}_site_conf_v1
|
|
file: ./site.conf
|