2024-05-05 11:05:51 +02:00
|
|
|
version: '3.9'
|
|
|
|
|
|
|
|
services:
|
2024-05-06 17:21:39 +02:00
|
|
|
# Caddy
|
2024-05-05 11:05:51 +02:00
|
|
|
caddy:
|
|
|
|
image: caddy:latest
|
2024-05-06 17:21:39 +02:00
|
|
|
container_name: caddy
|
2024-05-05 11:05:51 +02:00
|
|
|
profiles:
|
2024-05-06 17:21:39 +02:00
|
|
|
- caddy
|
2024-05-05 11:05:51 +02:00
|
|
|
restart: on-failure
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- wordpress:/var/www/html:rw
|
|
|
|
- caddy_data:/data:rw
|
|
|
|
- caddy_config:/config:rw
|
|
|
|
- ./caddy:/etc/caddy:ro
|
|
|
|
networks:
|
|
|
|
- infra-network
|
2024-05-06 09:47:23 +02:00
|
|
|
env_file:
|
|
|
|
- env/caddy.env
|
2024-05-05 11:05:51 +02:00
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
2024-05-12 11:11:53 +02:00
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
# - CHOWN
|
|
|
|
# - FOWNER
|
|
|
|
# - DAC_OVERRIDE
|
|
|
|
# - SETGID
|
|
|
|
# - SETUID
|
|
|
|
- NET_BIND_SERVICE
|
2024-05-06 09:47:23 +02:00
|
|
|
healthcheck:
|
|
|
|
test: pidof caddy || exit 1
|
|
|
|
interval: 120s
|
|
|
|
timeout: 10s
|
|
|
|
retries: 3
|
2024-05-05 11:05:51 +02:00
|
|
|
|
2024-05-05 22:38:14 +02:00
|
|
|
volumes:
|
|
|
|
caddy_data:
|
|
|
|
name: caddy_data
|
|
|
|
caddy_config:
|
|
|
|
name: caddy_config
|