2024-09-19 08:52:57 -03:00
|
|
|
# Can be enhanced with additional compose file
|
|
|
|
# See also https://docs.docker.com/compose/production/#modify-your-compose-file-for-production
|
|
|
|
|
|
|
|
version: '3.7'
|
|
|
|
services:
|
|
|
|
radicale:
|
|
|
|
image: tomsquest/docker-radicale
|
|
|
|
container_name: radicale
|
|
|
|
ports:
|
|
|
|
- 5232:5232
|
|
|
|
init: true
|
|
|
|
read_only: true
|
|
|
|
security_opt:
|
|
|
|
- no-new-privileges:true
|
|
|
|
cap_drop:
|
|
|
|
- ALL
|
|
|
|
cap_add:
|
|
|
|
- SETUID
|
|
|
|
- SETGID
|
|
|
|
- CHOWN
|
|
|
|
- KILL
|
|
|
|
deploy:
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
memory: 256M
|
|
|
|
pids: 50
|
|
|
|
healthcheck:
|
|
|
|
test: curl -f http://127.0.0.1:5232 || exit 1
|
|
|
|
interval: 30s
|
|
|
|
retries: 3
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
2024-09-19 08:59:43 -03:00
|
|
|
- /docker/appdata/radicale/data:/data
|
2024-09-19 09:04:50 -03:00
|
|
|
- /docker/appdata/radicale/config:/config:ro
|