mirror of
https://github.com/iritmaximus/self-host.git
synced 2026-10-12 19:23:31 +03:00
added radicale to docker compose
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM tomsquest/docker-radicale
|
||||
|
||||
COPY config /config/config
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user