-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-grafana_mid.yml
48 lines (42 loc) · 1.3 KB
/
docker-grafana_mid.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
# FAILED!
# build & run: docker-compose --env-file=docker.env --file docker-grafana_mid.yml up --build
# testing connection from middelware to grafana
# docker exec -it grafana /bin/sh
# curl http://middleware:5000/test
services:
mongodb:
image: mongo:${MONGODB_IMAGE_TAG} # Use the MongoDB version specified in docker.env
container_name: mongodb
env_file:
- docker.env # Load non-sensitive information
volumes:
- ${MONGODB_DATA_PATH}:/data/db # Persistent storage for MongoDB data, defined in docker.env
ports:
- "27017:27017"
middleware:
build:
context: ./middleware
dockerfile: ./Dockerfile
container_name: middleware
env_file:
- docker.env # Load non-sensitive information
ports:
- "5000:5000"
depends_on:
- mongodb
grafana:
image: grafana/grafana:${GRAFANA_IMAGE_TAG} # Use the Grafana version specified in docker.env
container_name: grafana
ports:
- "3000:3000"
env_file:
- docker.env # Load non-sensitive information
environment:
- GF_INSTALL_PLUGINS=grafana-simple-json-datasource
volumes:
- ${GRAFANA_DATA_PATH}:/var/lib/grafana # Persistent storage for Grafana data, defined in docker.env
depends_on:
- middleware
volumes:
mongodb_data:
grafana_data: