-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.42 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
42
43
44
45
46
47
48
49
50
51
52
53
54
version: "3"
services:
avs:
image: goplus_avs:latest
container_name: goplus-avs
volumes:
- ${CONFIG_FILE_PATH}:${CONFIG_FILE_PATH}
- ${COMPOSE_FILE_PATH}:${COMPOSE_FILE_PATH}
- ${BLS_KEY_STORE_PATH}:${BLS_KEY_STORE_PATH}
- /var/run/docker.sock:/var/run/docker.sock
environment:
- BLS_KEY_PASSWORD=${BLS_KEY_PASSWORD}
command:
- "/bin/sh"
- "-c"
- "/app/avs start -c ${CONFIG_FILE_PATH}"
restart: unless-stopped
network_mode: "host"
avs_prometheus:
image: prom/prometheus
container_name: goplus-avs-prometheus
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--storage.tsdb.retention.time=200h"
- "--web.enable-lifecycle"
ports:
- "9090:9090"
- "9999:9999"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- goplus_avs_prom_data:/prometheus
restart: unless-stopped
network_mode: "host"
avs_grafana:
image: grafana/grafana
container_name: goplus-avs-grafana
ports:
- "3000:3000"
volumes:
- goplus_avs_grafana_data:/var/lib/grafana
- ./avs/metrics/provisioning:/etc/grafana/provisioning
restart: unless-stopped
environment:
- GF_SECURITY_ADMIN_USER=goplus_avs
- GF_SECURITY_ADMIN_PASSWORD=admin
network_mode: "host"
volumes:
goplus_avs_prom_data: {}
goplus_avs_grafana_data: {}