-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 839 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 839 Bytes
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
services:
distromap:
build: .
image: distromap-api:latest
container_name: distromap-api
ports:
- "8080:8080"
environment:
# Server Settings
- SERVER_HOST=0.0.0.0
- SERVER_PORT=8080
- BASE_URL=http://localhost:8080
- UPDATE_INTERVAL=6
- SSL_VERIFY_PEER=true
# CORS Settings
- CORS_ENABLED=true
- CORS_ORIGIN=*
- CORS_METHODS=GET, OPTIONS
- CORS_HEADERS=Content-Type, Accept
# Caching & Logging
- CACHE_MAX_AGE=300
- REQUEST_LOGGING=true
- DEBUG=false
# Metrics (disabled by default for security)
- METRICS_ENABLED=false
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s