-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (68 loc) · 1.6 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3"
volumes:
prometheus_data: {}
grafana_data: {}
services:
monitoringsvc:
build:
context: .
dockerfile: Dockerfile-local
container_name: monitoringsvc
expose:
- 5000
ports:
- "80:5000"
env_file:
- ./.env
# environment:
# - MONGO_URL=mongodb://root-user:root-password@mongo:27017/
# environment:
# - ERR_STG_COLLECTION=errorstaging
# stastd:
# image: prom/statsd-exporter
# container_name: statsd
# expose:
# - 9125
# - 9102
prometheus:
image: prom/prometheus
container_name: prometheus
volumes:
- ./local_dev/config/prometheus/:/etc/prometheus/
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
expose:
- 9090
ports:
- 9090:9090
grafana:
image: grafana/grafana
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- grafana_data:/var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=testpassword
- GF_USERS_ALLOW_SIGN_UP=false
mongo:
image: mongo
restart: always
container_name: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root-user
- MONGO_INITDB_ROOT_PASSWORD=root-password
- MONGO_INITDB_DATABASE=testdb
ports:
- 27017:27017
mongo-express:
image: mongo-express
restart: always
ports:
- 8081:8081
environment:
- ME_CONFIG_MONGODB_ADMINUSERNAME=root-user
- ME_CONFIG_MONGODB_ADMINPASSWORD=root-password
- ME_CONFIG_MONGODB_URL=mongodb://root-user:root-password@mongo:27017/