-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (34 loc) · 1.08 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
36
37
38
39
40
41
version: "3.3"
services:
pingmetrics-backend:
build: .
container_name: pingmetrics-backend # the container name is changed prometheus.yml should be changed aswell
#restart: unless-stopped
ports:
- "10501:8000" # api
- "10502:8001" # metrics (optional)
pingmetrics-prometheus:
image: prom/prometheus
user: "1000:1000"
container_name: pingmetrics-prometheus
#restart: unless-stopped
ports:
- "10503:9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/data:/prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--web.console.libraries=/etc/prometheus/console_libraries"
- "--web.console.templates=/etc/prometheus/consoles"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=9001d"
- "--web.enable-admin-api"
pingmetrics-frontend:
build:
context: .
dockerfile: Dockerfile.frontend
container_name: pingmetrics-frontend
#restart: unless-stopped
ports:
- "10504:80" # api