blob: b00bf4d25886ee60c8ae77c1357afa389e754603 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
version: "3"
services:
radicale:
image: tomsquest/docker-radicale
restart: unless-stopped
init: true
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- CHOWN
- KILL
environment:
- TAKE_FILE_OWNERSHIP=false
volumes:
- ./config:/config:ro
- remote:/data/collections
networks:
- traefik
labels:
- "traefik.enable=true"
- "traefik.http.routers.radicale.rule=Host(`${DOMAIN}`)"
- "traefik.http.routers.radicale.entrypoints=websecure"
- "traefik.http.routers.radicale.tls.certresolver=letsencrypt"
healthcheck:
test: curl -f http://127.0.0.1:5232 || exit 1
interval: 30s
retries: 3
volumes:
remote:
driver: local
driver_opts:
type: cifs
device: "//${REMOTE_DOMAIN}${REMOTE_PATH}"
o: "addr=${REMOTE_DOMAIN},username=${REMOTE_USERNAME},password=${REMOTE_PASSWORD},file_mode=0777,dir_mode=0777"
networks:
traefik:
name: "${TRAEFIK_NETWORK}"
external: true
|