-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (39 loc) · 1000 Bytes
/
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
version: '3.5'
services:
mongo-prometheus:
image: bitnami/mongodb-exporter:0.11.0-debian-10-r75
ports:
- 8880:9216
environment:
- MONGODB_URI=mongodb://admin:admin123@mongo:27017
mongo:
image: mongo:4.2.8-bionic
restart: always
ports:
- 27017:27017
environment:
- MONGO_INITDB_ROOT_USERNAME=admin
- MONGO_INITDB_ROOT_PASSWORD=admin123
- MONGO_INITDB_DATABASE=sample
mongo-express:
image: mongo-express:0.54.0
restart: always
ports:
- 8082:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=admin
- ME_CONFIG_MONGODB_ADMINPASSWORD=admin123
prometheus:
image: flaviostutz/prometheus
ports:
- 9090:9090
environment:
- SCRAPE_INTERVAL=10s
- SCRAPE_TIMEOUT=10s
- STATIC_SCRAPE_TARGETS=mongo@mongo-prometheus:9216
grafana:
image: flaviostutz/grafana:5.2.4
ports:
- 3000:3000
environment:
- GF_SECURITY_ADMIN_PASSWORD=mypass