-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
41 lines (40 loc) · 930 Bytes
/
docker-compose.yaml
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
version: '2'
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- ~/power_service/data:/logs
# mount during development only
# - ./app:/app
# - ./tests:/tests
links:
- influxdb
environment:
- INFLUX_HOST=influxdb
- INFLUX_USER=web
- INFLUX_USER_PASSWORD=pwd
container_name: ps_web_api
depends_on:
- influxdb
influxdb:
image: "influxdb:1.5-alpine"
container_name: ps_influxdb
restart: always
# DO NOT use in production
# use secret field instead
environment:
- INFLUXDB_GRAPHITE_ENABLED=true
- INFLUXDB_DB=energy_service
- INFLUXDB_ADMIN_ENABLED=true
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=pwd
- INFLUXDB_USER=web
- INFLUXDB_USER_PASSWORD=pwd
ports:
- "8083:8083"
- "8086:8086"
- "2003:2003"
volumes:
- ~/power_service/data:/var/lib/influxdb