-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
76 lines (71 loc) · 2.12 KB
/
docker-compose.prod.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
insap-prometheus:
image: prom/prometheus
ports:
- 9090:9090
volumes:
- ./docker/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
- '--web.console.libraries=/etc/prometheus/console_libraries'
- '--web.console.templates=/etc/prometheus/consoles'
- '--storage.tsdb.retention=200h'
- '--web.enable-lifecycle'
insap-mysql-exporter:
image: prom/mysqld-exporter:v0.12.1
expose:
- 9104
environment:
- DATA_SOURCE_NAME=root:${MYSQL_ROOT_PASSWORD}@(${MYSQL_HOST}:${MYSQL_PORT})/
depends_on:
- insap-mysql
insap-mongo-exporter:
image: bitnami/mongodb-exporter
expose:
- 9216
links:
- insap-mongo
command: [ "--mongodb.uri=mongodb://${MONGO_DB_USERNAME}:${MONGO_DB_PASSWORD}@${MONGO_DB_HOST}:${MONGO_DB_PORT}/admin",
"--web.listen-address=0.0.0.0:9091", "--mongodb.direct-connect=true" ]
insap-node-exporter:
image: prom/node-exporter:v0.18.1
user: root
privileged: true
volumes:
- /proc:/host/proc:ro
- /sys:/host/sys:ro
- /:/rootfs:ro
command:
- '--path.procfs=/host/proc'
- '--path.sysfs=/host/sys'
- '--collector.filesystem.ignored-mount-points=^/(sys|proc|dev|host|etc)($$|/)'
expose:
- 9100
insap-grafana:
image: grafana/grafana:7.4.5-ubuntu
user: "$UID:$GID"
depends_on:
- insap-prometheus
ports:
- 3001:3000
expose:
- 3000
volumes:
- ./docker/grafana/data:/var/lib/grafana
- ./docker/grafana/datasources:/etc/grafana/datasources
- ./docker/grafana/dashboards:/etc/grafana/dashboards
- ./docker/grafana/setup.sh:/setup.sh
environment:
- GF_SECURITY_ADMIN_USER=${ADMIN_USER:-admin}
- GF_SECURITY_ADMIN_PASSWORD=${ADMIN_PASSWORD:-admin}
- GF_USERS_ALLOW_SIGN_UP=false
insap-rabbit:
image: rabbitmq:3.8-management-alpine
environment:
RABBITMQ_ERLANG_COOKIE: ${RABBITMQ_ERLANG_COOKIE}
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER}
RABBITMQ_DEFAULT_PASS: ${RABBITMQ_DEFAULT_PASS}
RABBITMQ_DEFAULT_VHOST: ${RABBITMQ_DEFAULT_VHOST}
ports:
- 15672:15672
- 5672:5672