change services for traefik support

This commit is contained in:
Pim Kunis 2023-01-02 17:18:29 +01:00
parent 0b60fba148
commit f175f716a5
4 changed files with 57 additions and 33 deletions

View file

@ -1,11 +1,21 @@
version: '3'
networks:
traefik:
external: true
services:
radicale:
restart: always
image: mailu/radicale:1.9
ports:
- '0.0.0.0:5232:5232'
volumes:
- /data/radicale:/var/lib/radicale
- /apps/radicale/config:/radicale
command: radicale -S -C /radicale/radicale.conf
networks:
- traefik
labels:
- traefik.http.routers.radicale.entrypoints=websecure
- traefik.http.routers.radicale.rule=Host(`dav.pizzapim.nl`)
- traefik.http.routers.radicale.tls=true
- traefik.http.routers.radicale.tls.certresolver=pizzapim