-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.29 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
version: "3.9"
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: pitwall-backend
restart: unless-stopped
ports:
# Bind to localhost only for security by default
- "127.0.0.1:8000:8000"
environment:
- PITWALL_REFRESH_INTERVAL=1.0
- PITWALL_HISTORY_POINTS=1800
- PITWALL_SENSOR_WARNING_THRESHOLD=85.0
- PITWALL_ALLOW_ORIGINS=http://localhost:3000
# Uncomment to require auth token
# - PITWALL_AUTH_TOKEN=your-secret-token
volumes:
- /run/log/journal:/run/log/journal:ro
- /var/log:/var/log:ro
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/healthz')"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: pitwall-frontend
restart: unless-stopped
ports:
- "3000:3000"
depends_on:
backend:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
networks:
default:
name: pitwall-network