generated from Arquisoft/dede_0
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
57 lines (56 loc) · 1.18 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
version: '3.5'
volumes:
prometheus_data: {}
grafana_data: {}
services:
restapi:
build: ./restapi
ports:
- "5000:5000"
depends_on:
- mongo
webapp:
build: ./webapp
ports:
- "3000:3000"
depends_on:
- restapi
prometheus:
image: prom/prometheus
volumes:
- ./restapi/monitoring/prometheus:/etc/prometheus
- prometheus_data:/prometheus
ports:
- "9090:9090"
depends_on:
- restapi
grafana:
image: grafana/grafana
volumes:
- grafana_data:/var/lib/grafana
- ./restapi/monitoring/grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SERVER_HTTP_PORT=9091
- GF_AUTH_DISABLE_LOGIN_FORM=true
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
ports:
- "9091:9091"
depends_on:
- restapi
mongo:
image: mongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: SergioArroni
MONGO_INITDB_ROOT_PASSWORD: julio321
MONGO_INITDB_DATABASE: DeDesktop
ports:
- "27017:27017"
python:
build: ./data
image: python
ports:
- "8000:8000"
depends_on:
- mongo