-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.dev.yml
54 lines (50 loc) · 1.22 KB
/
docker-compose.dev.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
version: '3.6'
x-common-postgres-variables: &common-postgres-variables
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
x-common-influx-variables: &common-influx-variables
INFLUXDB_DB: smart_factory
INFLUXDB_USER: admin
INFLUXDB_USER_PASSWORD: admin
services:
grafana:
build: ./grafana
ports:
- 3000:3000
volumes:
- grafana_plugins:/var/lib/grafana/plugins
- grafana_provisioning:/etc/grafana/provisioning
environment:
<<: *common-postgres-variables
<<: *common-influx-variables
depends_on:
- postgres
- influx
postgres:
build: ./postgres
environment: *common-postgres-variables
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
influx:
image: influxdb
ports:
- 8086:8086
environment: *common-influx-variables
volumes:
- influx_data:/var/lib/influxdb
postREST:
image: postgrest/postgrest
ports:
- 5436:3000
environment:
- PGRST_DB_URI=postgres://postgres:mysecretpassword@postgres/smartfactory
- PGRST_DB_ANON_ROLE=postgres
depends_on:
- postgres
volumes:
grafana_plugins:
grafana_provisioning:
postgres_data:
influx_data: