33 lines
876 B
YAML
33 lines
876 B
YAML
services:
|
|
site:
|
|
image: hugomods/hugo:nginx-1.27.4
|
|
networks:
|
|
- proxy
|
|
volumes:
|
|
- public:/site
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost"]
|
|
interval: 10s
|
|
timeout: 10s
|
|
retries: 10
|
|
start_period: 15s
|
|
deploy:
|
|
update_config:
|
|
failure_action: rollback
|
|
order: start-first
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.services.${STACK_NAME}.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`)"
|
|
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
|
|
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=production"
|
|
- "caddy=https://${DOMAIN}"
|
|
- "caddy.reverse_proxy={{upstreams 80}}"
|
|
- "caddy.tls.on_demand="
|
|
|
|
networks:
|
|
proxy:
|
|
external: true
|
|
|
|
volumes:
|
|
public: |