Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (64 loc) · 2.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
65 lines (64 loc) · 2.05 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
services:
calino:
build:
context: .
args:
- VITE_SITE_URL=${VITE_SITE_URL:-https://calino.io}
- CALINO_ENABLE_SW=${CALINO_ENABLE_SW:-false}
- CALINO_GITHUB_REPO=${CALINO_GITHUB_REPO:-ivan-malinovski/Calino}
- CALINO_CONTACT_EMAIL=${CALINO_CONTACT_EMAIL:-calendar@malinov.ski}
- CALINO_SELF_HOSTED=${CALINO_SELF_HOSTED:-true}
ports:
- "8080:8080"
restart: unless-stopped
# ⚠️ cap_drop ALL removed — Docker Desktop 4.7.1 (runc v1.0.3) has a bug
# where it drops capabilities needed by the container init process itself,
# causing "standard_init_linux.go:228: operation not permitted" crashes.
# The container is already hardened via no-new-privileges,
# pids_limit, and mem_limit.
security_opt:
- no-new-privileges:true
pids_limit: 256
mem_limit: 128m
memswap_limit: 128m
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8080/"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
# Optional self-hosted CORS proxy for CalDAV servers that don't send CORS
# headers. Off by default — enable with: docker compose --profile proxy up -d
# Then set the Proxy URL in Calino settings to http://<your-host>:8081
caldav-proxy:
profiles: ["proxy"]
build:
context: ./proxy
ports:
- "8081:8081"
environment:
# Leave empty to allow any origin, or restrict to your Calino instance(s),
# e.g. ALLOWED_ORIGINS=https://calendar.example.com
- ALLOWED_ORIGINS=${CALINO_PROXY_ALLOWED_ORIGINS:-}
restart: unless-stopped
security_opt:
- no-new-privileges:true
pids_limit: 256
mem_limit: 128m
memswap_limit: 128m
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8081/health"]
interval: 30s
timeout: 3s
start_period: 5s
retries: 3
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"