-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
98 lines (89 loc) · 2.92 KB
/
docker-compose.yaml
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
85
86
87
88
89
90
91
92
93
94
95
96
97
version: '3.7'
services:
nginx:
restart: always
image: nginx:1.21.1-alpine
container_name: argus_nginx
environment:
- LOKI_USER=$LOKI_USER
- LOKI_PASSWORD=$LOKI_PASSWORD
volumes:
- ./server_conf/nginx/nginx-selfsigned.key:/etc/ssl/private/nginx-selfsigned.key:ro
- ./server_conf/nginx/nginx-selfsigned.crt:/etc/ssl/certs/nginx-selfsigned.crt:ro
- ./server_conf/nginx/self-signed.conf:/etc/nginx/snippets/self-signed.conf:ro
- ./server_conf/nginx/dhparam.pem:/etc/ssl/certs/dhparam.pem:ro
- ./server_conf/nginx/site.conf:/etc/nginx/conf.d/site.conf:ro
- ./server_conf/nginx/ssl-params.conf:/etc/nginx/snippets/ssl-params.conf:ro
- ./server_conf/nginx/generate_htpasswd.sh:/docker-entrypoint.d/generate_htpasswd.sh
networks:
- argus_backend
ports:
- 443:443
- 80:80
grafana:
restart: always
image: grafana/grafana:8.1.1
container_name: argus_grafana
environment:
- ORG_NAME=$ORG_NAME
- GF_SECURITY_ADMIN_PASSWORD=$GF_SECURITY_ADMIN_PASSWORD
- GF_INSTALL_PLUGINS=$GF_INSTALL_PLUGINS
- GF_SERVER_ROOT_URL=$GF_SERVER_ROOT_URL
- GF_SERVER_DOMAIN=$GF_SERVER_DOMAIN
- INFLUXDB_ADMIN_PASSWORD=$INFLUXDB_ADMIN_PASSWORD
- INFLUXDB_ADMIN_USER=$INFLUXDB_ADMIN_USER
- INFLUXDB_DB=$INFLUXDB_DB
- AUTH_GITLAB_ENABLED=$AUTH_GITLAB_ENABLED
- AUTH_GITLAB_CLIENT_ID=$AUTH_GITLAB_CLIENT_ID
- AUTH_GITLAB_CLIENT_SECRET=$AUTH_GITLAB_CLIENT_SECRET
- AUTH_GITLAB_ALLOWED_GROUPS=$AUTH_GITLAB_ALLOWED_GROUPS
volumes:
- grafana_volume:/var/lib/grafana
- ./server_conf/grafana/grafana.ini:/etc/grafana/grafana.ini:ro
- ./server_conf/grafana/provisioning/:/etc/grafana/provisioning/
- ./server_conf/grafana/dashboards:/var/lib/grafana/dashboards
networks:
- argus_backend
prometheus:
restart: always
image: prom/prometheus:v2.19.1
container_name: argus_prometheus
volumes:
- ./server_conf/prometheus:/etc/prometheus
networks:
- argus_backend
influxdb:
restart: always
image: influxdb:1.8.9-alpine
container_name: argus_influxdb
environment:
- INFLUXDB_DB=$INFLUXDB_DB
- INFLUXDB_USER=$INFLUXDB_USER
- INFLUXDB_USER_PASSWORD=$INFLUXDB_USER_PASSWORD
- INFLUXDB_ADMIN_PASSWORD=$INFLUXDB_ADMIN_PASSWORD
- INFLUXDB_ADMIN_USER=$INFLUXDB_ADMIN_USER
- INFLUXDB_HTTP_AUTH_ENABLED=true
networks:
- argus_backend
volumes:
- influxdb_volume:/var/lib/influxdb
loki:
restart: always
image: grafana/loki:main-0f10a54
container_name: argus_loki
networks:
- argus_backend
command: -config.file=/etc/loki/local-config.yaml
volumes:
- loki_volume:/loki
volumes:
grafana_volume:
driver: local
influxdb_volume:
driver: local
loki_volume:
driver: local
networks:
argus_backend:
external: false
driver: bridge