-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.production.yml
More file actions
40 lines (36 loc) · 1.01 KB
/
docker-compose.production.yml
File metadata and controls
40 lines (36 loc) · 1.01 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
services:
app:
image: ghcr.io/oidatiftla/calendar-proxy:latest
restart: unless-stopped
expose:
- 8000 # Assuming the app is behind a reverse proxy
environment:
# Required settings
# - PROXY_TOKENS=test-token-123,debug-token-456 # Should be set in .env; Generate it using: openssl rand -hex 40
# Optional settings
- ALLOWED_HOSTS=outlook.office365.com,calendar.google.com
- LOG_LEVEL=WARNING
- DISABLE_ACCESS_LOG=true
env_file: .env
# Security hardening
read_only: true
cap_drop:
- ALL
security_opt:
- no-new-privileges:true
# Resource limits
deploy:
resources:
limits:
memory: 512M
cpus: '0.5'
# Temporary filesystems for read-only container
tmpfs:
- /tmp:noexec,nosuid,size=100m
- /var/tmp:noexec,nosuid,size=50m
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthz"]
interval: 30s
timeout: 10s
retries: 5
start_period: 5s