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 8fba3a82b0
All checks were successful
Deploy to Swarm / deploy (push) Successful in 3s
New Service
2025-10-25 12:46:36 -04:00

32 lines
646 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:
- ./Caddyfile:/etc/caddy/Caddyfile
- /mnt/swarm-data/caddy/data:/data
- /mnt/swarm-data/caddy/config:/config
deploy:
mode: global
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3