2024-05-05 11:05:51 +02:00
|
|
|
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-12 12:00:12 +02:00
|
|
|
restart: on-failure:5
|
2024-05-05 11:05:51 +02:00
|
|
|
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-18 18:34:49 +02:00
|
|
|
#cap_drop:
|
|
|
|
# - ALL
|
2024-05-12 11:11:53 +02:00
|
|
|
cap_add:
|
2024-05-18 18:34:49 +02:00
|
|
|
- NET_ADMIN
|
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
|