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 cc30ce59f0
All checks were successful
Deploy to Swarm / deploy (push) Successful in 3s
Increased Replicas
2025-10-25 12:50:45 -04:00

32 lines
645 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:
replicas: 1
placement:
constraints:
- node.role == manager
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3