added radicale to docker compose

This commit is contained in:
Aaro Koivukangas
2023-11-27 13:40:50 +02:00
parent 200ec02963
commit 638954db8b
3 changed files with 44 additions and 0 deletions
+30
View File
@@ -60,3 +60,33 @@ services:
#restart: always
env_file:
./services/pumppistatus/.env
radicale:
image: tomsquest/docker-radicale
container_name: radicale
ports:
- 127.0.0.1:5232:5232
init: true
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- SETUID
- SETGID
- CHOWN
- KILL
deploy:
resources:
limits:
memory: 256M
pids: 50
healthcheck:
test: curl -f http://127.0.0.1:5232 || exit 1
interval: 30s
retries: 3
restart: unless-stopped
volumes:
- ./data/radicale/:/data/
- ./radicale/config:/config:ro
+3
View File
@@ -0,0 +1,3 @@
FROM tomsquest/docker-radicale
COPY config /config/config
+11
View File
@@ -0,0 +1,11 @@
[server]
# Bind all addresses
hosts = 0.0.0.0:5232, [::]:5232
[auth]
type = htpasswd
htpasswd_filename = /data/users
htpasswd_encryption = md5
[storage]
filesystem_folder = /data/collections