This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
max/ansible/roles/radicale/templates/docker-compose.yml.j2

40 lines
981 B
Text
Raw Normal View History

2023-04-13 09:43:42 +00:00
version: '3.7'
2023-01-02 16:18:29 +00:00
2022-12-14 20:35:59 +00:00
services:
radicale:
2023-04-13 09:43:42 +00:00
image: tomsquest/docker-radicale
container_name: radicale
2023-04-13 09:43:42 +00:00
init: true
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- CHOWN
- KILL
healthcheck:
test: curl -f http://127.0.0.1:5232 || exit 1
interval: 30s
retries: 3
restart: unless-stopped
2022-12-14 20:35:59 +00:00
volumes:
2023-01-07 19:32:42 +00:00
- {{ data_dir }}:/data
2023-04-13 09:43:42 +00:00
- {{ service_dir }}/config:/config:ro
2023-01-02 16:18:29 +00:00
networks:
- traefik
labels:
- traefik.enable=true
2023-01-02 16:18:29 +00:00
- traefik.http.routers.radicale.entrypoints=websecure
2023-02-08 07:27:30 +00:00
- traefik.http.routers.radicale.rule=Host(`{{ dav_domain }}`)
2023-01-02 16:18:29 +00:00
- traefik.http.routers.radicale.tls=true
2023-02-08 07:27:30 +00:00
- traefik.http.routers.radicale.tls.certresolver=letsencrypt
- traefik.http.routers.radicale.service=radicale
2023-02-08 07:27:30 +00:00
- traefik.http.services.radicale.loadbalancer.server.port=5232
2023-04-13 09:43:42 +00:00
networks:
traefik:
external: true