-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (79 loc) · 2.08 KB
/
docker-compose.yml
File metadata and controls
84 lines (79 loc) · 2.08 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
postgres:
image: postgres:15-alpine
container_name: network-monitor-db
restart: unless-stopped
environment:
POSTGRES_USER: speedtest
POSTGRES_DB: network-monitor
PGDATA: /var/lib/postgresql/data/pgdata
env_file:
- .env
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U speedtest -d network-monitor"]
interval: 10s
timeout: 5s
retries: 5
network-monitor-data-server:
image: mark7888/network-monitor-data-server:latest
container_name: network-monitor-data-server
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
SERVER_HOST: 0.0.0.0
SERVER_PORT: 8080
SERVER_MODE: release
DB_HOST: postgres
DB_PORT: 5432
DB_USER: speedtest
DB_NAME: network-monitor
DB_SSLMODE: disable
LOG_OUTPUT: /app/logs/data-server.log
LOG_LEVEL: info
LOG_FORMAT: json
LOG_OUTPUT_CONSOLE: true
env_file:
- .env
ports:
- "8080:8080"
volumes:
- data_server_logs:/app/logs
network-monitor-frontend:
image: mark7888/network-monitor-ui:latest
container_name: network-monitor-frontend
restart: unless-stopped
ports:
- "3000:3000"
environment:
DEBUG: false
env_file:
- .env
network-monitor-node:
image: mark7888/network-monitor-node:latest
container_name: network-monitor-node
restart: unless-stopped
depends_on:
- network-monitor-data-server
environment:
SPEEDTEST_SERVER_URL: http://network-monitor-data-server:8080
SPEEDTEST_DB_PATH: /app/data/speedtest.db
SPEEDTEST_LOG_OUTPUT: /app/logs/speedtest-node.log
SPEEDTEST_LOG_LEVEL: info
SPEEDTEST_LOG_FORMAT: json
SPEEDTEST_LOG_OUTPUT_CONSOLE: true
env_file:
- .env
volumes:
- speedtest_node_data:/app/data
- speedtest_node_logs:/app/logs
volumes:
postgres_data:
data_server_logs:
speedtest_node_data:
speedtest_node_logs: