-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
64 lines (59 loc) · 1.23 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
version: "3"
services:
# MONGO
mongodb:
image: mongo
ports:
- 27017:27017
network_mode: bridge
mongo_express:
image: mongo-express
restart: always
environment:
- ME_CONFIG_OPTIONS_EDITORTHEME=ambiance
- ME_CONFIG_MONGODB_SERVER=mongodb
links:
- mongodb:mongodb
depends_on:
- mongodb
ports:
- 8081:8081
network_mode: bridge
# APP
demoapp:
build:
context: ./
dockerfile: Dockerfile
image: demo
environment:
- SPRING_ACTIVE_PROFILES=compose
links:
- mongodb:mongodb
depends_on:
- mongodb
ports:
- 8080:8080
network_mode: bridge
# MONITORING
prometheus:
image: prom/prometheus
volumes:
- ./monitoring/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
links:
- demoapp:demoapp
network_mode: bridge
grafana:
image: grafana/grafana
volumes:
- ./monitoring/grafana/provisioning:/etc/grafana/provisioning
- ./monitoring/grafana/config.ini:/etc/grafana/config.ini
- ./monitoring/grafana/dashboards:/var/lib/grafana/dashboards
ports:
- 3000:3000
links:
- prometheus:prometheus
depends_on:
- prometheus
network_mode: bridge