-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
41 lines (38 loc) · 1 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
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:
image: spruiktec/libre-grafana
ports:
- 3000:3000
volumes:
- ./dist:/var/lib/grafana/plugins/libre-equipment-crud-tree-chart-panel:ro
environment:
<<: *common-postgres-variables
<<: *common-influx-variables
depends_on:
- postrest
postrest:
image: postgrest/postgrest
ports:
- 5436:3000
environment:
- PGRST_DB_URI=postgres://postgres:mysecretpassword@postgres/smartfactory
- PGRST_DB_ANON_ROLE=postgres
depends_on:
- postgres
simulator:
image: spruiktec/libre-simulator
ports:
- 1880:1880
depends_on:
- postrest
postgres:
image: spruiktec/libre-postgres
environment: *common-postgres-variables