This repository has been archived on 2025-11-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
swarm-production/stacks/core/caddy/stack.yml
John Allison bda8c78f0e
All checks were successful
Deploy to Swarm / deploy (push) Successful in 2s
Fixed Syntax Error
2025-10-25 12:59:58 -04:00

32 lines
664 B
YAML

networks:
homelab:
external: true
services:
caddy:
image: caddy:latest
ports:
- target: 80
published: 80
mode: host
- target: 443
published: 443
mode: host
- target: 2019
published: 2019
mode: host
networks:
- homelab
volumes:
- /mnt/swarm-data/caddy/Caddyfile:/etc/caddy/Caddyfile
- /mnt/swarm-data/caddy/data:/data
- /mnt/swarm-data/caddy/config:/config
deploy:
replicas: 1
placement:
constraints:
- node.hostname == p0
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3