-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (51 loc) · 1.18 KB
/
docker-compose.yml
File metadata and controls
57 lines (51 loc) · 1.18 KB
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
version: "3.3"
services:
api:
build: .
image: 127.0.0.1:5000/panel_service
volumes:
- .:/code
depends_on:
- grafana
entrypoint: >
watchmedo auto-restart
--recursive
--pattern="*.py"
--directory="."
--
command: ["gunicorn", "influxdbgraphs.api.main:app", "-t 300", "-w 1", "-b :5000"]
ports:
- 3400:5000
- 9200:5678
environment:
- ENV=dev
- INTERNAL_GRAFANA_HOST=grafana
- INTERNAL_GRAFANA_PORT=3000
- EXTERNAL_GRAFANA_URL=http://localhost:3401
env_file:
- panel_service.env
influxdb:
image: influxdb:1.7.9
volumes:
- influxdb-data:/var/lib/influxdb
ports:
- "8086:8086"
environment:
- INFLUXDB_DB=energy_profiles
- INFLUXDB_WRITE_USER=edr
- INFLUXDB_WRITE_USER_PASSWORD=edr
grafana:
image: grafana/grafana:6.5.1
volumes:
- grafana-data:/var/lib/grafana
depends_on:
- influxdb
ports:
- "3401:3000"
environment:
- GF_AUTH_ANONYMOUS_ENABLED=true
- GF_SERVER_ROOT_URL=http://localhost:3401
- GF_SECURITY_ALLOW_EMBEDDING=True
volumes:
influxdb-data:
grafana-data: