infrastructure/ansible/plays/services/radicale/docker-compose.yaml

38 lines
881 B
YAML
Raw Permalink Normal View History

2022-12-12 17:50:41 +01:00
---
version: "3.4"
services:
radicale:
image: registry.tobiasmanske.de/radicale:latest
init: true
read_only: true
security_opt:
2023-01-10 13:32:17 +01:00
- no-new-privileges:true
2022-12-12 17:50:41 +01:00
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- KILL
healthcheck:
test: curl -f http://127.0.0.1:5232 || exit 1
interval: 30s
retries: 3
volumes:
- ./config:/config/config:ro,Z
- ./users:/config/users:ro,Z
- data:/data
environment:
- TAKE_FILE_OWNERSHIP=false
labels:
- "traefik.enable=true"
2024-01-22 18:56:17 +01:00
- "traefik.docker.network=${COMPOSE_PROJECT_NAME}_default"
2023-01-10 13:32:17 +01:00
- "traefik.http.routers.radicale.rule=Host(`calendar.tobiasmanske.de`)"
- "traefik.http.routers.radicale.entryPoints=websecure"
- "traefik.http.services.radicale.loadbalancer.server.port=5232"
2022-12-12 17:50:41 +01:00
restart: always
volumes:
data:
...