-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
83 lines (75 loc) · 1.66 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3'
services:
postgres:
build:
context: ./postgres
ports:
- "5432"
env_file: .env
volumes:
- postgres_vol:/var/lib/postgresql/data
haproxy:
image: haproxy:1.9.4-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
datastore:
image: decodeproject/iotstore-amd64:v0.4.2
ports:
- "8080"
depends_on:
- postgres
env_file:
- .env
- datastore.env
command: [ "server", "--addr", ":8080" ]
restart: on-failure
policystore:
image: decodeproject/policystore-amd64:v0.3.1
ports:
- "8082"
depends_on:
- postgres
env_file:
- .env
- policystore.env
command: [ "server", "--addr", ":8082" ]
restart: on-failure
encoder:
image: decodeproject/iotenc-amd64:v0.4.3
ports:
- "8081"
depends_on:
- postgres
env_file:
- .env
- encoder.env
command: [ "server", "--addr", ":8081", "--datastore", "https://datastore.decodeproject.eu" ]
restart: on-failure
prometheus:
image: prom/prometheus:v2.2.1
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- "9090"
grafana:
image: grafana/grafana:5.1.3
ports:
- "3000:3000"
volumes:
- ./grafana/prometheus.yaml:/etc/grafana/provisioning/datasources/prometheus.yaml
- grafana_vol:/var/lib/grafana
depends_on:
- prometheus
pg_exporter:
image: wrouesnel/postgres_exporter:latest
ports:
- "9187"
env_file: .env
depends_on:
- postgres
volumes:
postgres_vol:
grafana_vol: