-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (42 loc) · 1.15 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (42 loc) · 1.15 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
version: "3.8"
services:
secboard:
build: .
container_name: secboard
restart: unless-stopped
ports:
- "8080:8080"
- "3131:3131"
- "3132:3132"
volumes:
- ./data:/app/data
- ./logs:/app/logs
environment:
- NODE_ENV=production
- LANSTART_BACKEND_HOST=0.0.0.0
- LANSTART_BACKEND_PORT=3131
- LANSTART_CAST_HOST=0.0.0.0
- LANSTART_CAST_PORT=3132
- LANSTART_DB_PATH=/app/data/lanstart.sqlite
- LANSTART_ALLOWED_ORIGINS=${LANSTART_ALLOWED_ORIGINS:-http://localhost:8080}
- LANSTART_API_TOKEN=${LANSTART_API_TOKEN:-}
- SECBOARD_WEB_HOST=0.0.0.0
- SECBOARD_WEB_PORT=8080
- SECBOARD_BACKEND_ORIGIN=http://127.0.0.1:3131
healthcheck:
test: ["CMD", "bun", "-e", "fetch('http://127.0.0.1:8080/health').then(r => process.exit(r.ok ? 0 : 1)).catch(() => process.exit(1))"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
logging:
driver: json-file
options:
max-size: "10m"
max-file: "3"
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 128M