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

62 lines
1.3 KiB
Text
Raw Normal View History

2023-05-02 14:47:27 +00:00
# vi: ft=yaml
version: '3.7'
2023-05-10 13:55:57 +00:00
2023-05-02 14:47:27 +00:00
networks:
traefik:
external: true
configs:
config:
2023-05-20 11:45:25 +00:00
external: true
name: "{{ config.config_name }}"
2023-05-02 14:47:27 +00:00
users:
2023-05-20 11:45:25 +00:00
external: true
name: "{{ users.config_name }}"
2023-05-02 14:47:27 +00:00
2023-06-14 09:27:44 +00:00
volumes:
data:
driver_opts:
type: "nfs"
o: "addr=192.168.30.10,nolock,soft,rw"
device: ":/mnt/data/radicale"
2023-05-02 14:47:27 +00:00
services:
radicale:
image: tomsquest/docker-radicale
init: true
read_only: 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
volumes:
2023-06-14 09:27:44 +00:00
- type: volume
source: data
2023-05-02 14:47:27 +00:00
target: /data
2023-06-14 09:27:44 +00:00
volume:
nocopy: true
2023-05-02 14:47:27 +00:00
networks:
- traefik
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.radicale.entrypoints=websecure
2023-06-14 09:27:44 +00:00
- traefik.http.routers.radicale.rule=Host(`dav.kun.is`)
2023-05-02 14:47:27 +00:00
- traefik.http.routers.radicale.tls=true
- traefik.http.routers.radicale.tls.certresolver=letsencrypt
- traefik.http.routers.radicale.service=radicale
- traefik.http.services.radicale.loadbalancer.server.port=5232
- traefik.docker.network=traefik
configs:
- source: config
target: /config/config
- source: users
target: /config/users