-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
59 lines (55 loc) · 1.35 KB
/
docker-compose.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
55
56
57
58
59
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
restart: always
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:
image: spruiktec/libre-postgres
restart: always
environment: *common-postgres-variables
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
influx:
image: influxdb
restart: always
ports:
- 8086:8086
environment: *common-influx-variables
volumes:
- influx_data:/var/lib/influxdb
postREST:
image: postgrest/postgrest
restart: always
ports:
- 5436:3000
environment:
- PGRST_DB_URI=postgres://postgres:mysecretpassword@postgres/smartfactory
- PGRST_DB_SCHEMA=public
- PGRST_DB_ANON_ROLE=postgres
depends_on:
- postgres
volumes:
grafana_plugins:
grafana_provisioning:
postgres_data:
influx_data: