From 4c75cee145eb8370c0f5beacb19950e9c7730e6e Mon Sep 17 00:00:00 2001 From: "luca.gambarotto" Date: Sun, 25 May 2025 18:12:18 +0000 Subject: [PATCH] Add docker-compose.yaml --- docker-compose.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..35f0299 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,32 @@ +# Can be enhanced with an additional compose file +# See also https://docs.docker.com/compose/production/#modify-your-compose-file-for-production + +services: + 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:/data \ No newline at end of file