-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (34 loc) · 1 KB
/
docker-compose.yml
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
services:
netcheck-exporter:
build:
context: ./netcheck-api
dockerfile: Dockerfile
container_name: netcheck-exporter
env_file:
- .env
environment:
# Env items in config are editable, but are not in the .env file.
# Variables in the .env file are REQUIRED to be edited or at least non-blank
- PING_ADDRESS=8.8.8.8
- DEBUG_MODE=false
- SPEEDTEST_CACHE_LAN_TIME=3600 # Duration inbetween tests (between all clients)
# - SPEEDTEST_PORT=<speedtest-port> #optional, but recomended against
# - SPEEDTEST_SERVER=<server-id> #optional, but recomended against
ports:
- 9798:9798
restart: unless-stopped
prometheus:
build:
context: .
dockerfile: Dockerfile
container_name: prometheus
ports:
- '9090:9090' # Expose Prometheus on port 9090
volumes:
- /prometheus
env_file:
- .env
restart: unless-stopped
networks:
default:
driver: bridge # Ensure both services are on the same network