-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1.07 KB
/
docker-compose.yml
File metadata and controls
46 lines (42 loc) · 1.07 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
version: '3.8'
services:
pingthing-monitor:
build: .
container_name: pingthing-monitor
restart: unless-stopped
command: ["bun", "start"]
volumes:
- ./data:/app/data
environment:
- TZ=UTC
- NODE_ENV=production
- PINGTHING_HOSTS=${PINGTHING_HOSTS:-8.8.8.8,google.com,github.com}
- PINGTHING_INTERVAL=${PINGTHING_INTERVAL:-60}
- PINGTHING_TIMEOUT=${PINGTHING_TIMEOUT:-5000}
- PINGTHING_RETRIES=${PINGTHING_RETRIES:-3}
- PINGTHING_DB_PATH=/app/data/pingthing.db
networks:
- pingthing-network
depends_on:
- pingthing-api
pingthing-api:
build: .
container_name: pingthing-api
restart: unless-stopped
command: ["bun", "run", "api"]
ports:
- "${PINGTHING_API_PORT:-3000}:3000"
volumes:
- ./data:/app/data
environment:
- TZ=UTC
- NODE_ENV=production
- PINGTHING_API_PORT=3000
- PINGTHING_DB_PATH=/app/data/pingthing.db
networks:
- pingthing-network
networks:
pingthing-network:
driver: bridge
volumes:
pingthing-data: