-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (46 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
49 lines (46 loc) · 1.33 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
version: '3.8'
services:
systemzero:
build:
context: .
dockerfile: Dockerfile
container_name: systemzero-api
ports:
- "8000:8000"
environment:
# System//Zero config via SZ_* env vars
- SZ_LOG_LEVEL=INFO
- SZ_JSON_LOGS=true
- SZ_LOG_PATH=/app/logs/systemzero.log
- SZ_ENABLE_HEALTH=true
- SZ_ENABLE_METRICS=true
- SZ_ENABLE_RATE_LIMITING=true
- SZ_RATE_LIMIT_RPM=100
- SZ_RATE_LIMIT_BURST=20
- SZ_MAX_REQUEST_SIZE_MB=10
- SZ_API_KEYS_PATH=/app/config/api_keys.yaml
# Optional: Override CORS origins (comma-separated)
# - SZ_CORS_ORIGINS=http://localhost:3000,http://localhost:8080
volumes:
# Mount code for development (comment out for production)
- ./systemzero:/app/systemzero
# Persistent data
- systemzero-logs:/app/logs
- systemzero-data:/app/data
# Config (use bind mount for easy editing)
- ./systemzero/config:/app/config
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:8000/health', timeout=5)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
volumes:
systemzero-logs:
driver: local
systemzero-data:
driver: local
networks:
default:
name: systemzero-network