-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
75 lines (68 loc) · 1.52 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
version: '3.3'
services:
api:
depends_on:
- influxdb
- kafka
- postgres
- redis
image: bsdavidson/trimetric
ports:
- "8181:80"
restart: always
secrets:
- postgres-password
- trimet-api-key
influxdb:
image: influxdb:alpine
env_file:
- ./secrets/influxdb.env
environment:
- INFLUXDB_DB=trimetric
- INFLUXDB_HTTP_LOG_ENABLED=false
- INFLUXDB_USER=trimetric
restart: always
volumes:
- influxdb:/var/lib/influxdb
kafka:
hostname: kafka
image: wurstmeister/kafka:0.10.2.1
depends_on:
- zookeeper
environment:
- KAFKA_ADVERTISED_HOST_NAME=kafka
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LOG_RETENTION_BYTES=104857600
- KAFKA_LOG_RETENTION_HOURS=1
- KAFKA_LOG_SEGMENT_BYTES=104857600
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- kafka:/kafka
postgres:
image: mdillon/postgis
environment:
- POSTGRES_USER=trimetric
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-password
restart: always
secrets:
- postgres-password
volumes:
- pgdata:/var/lib/postgresql/data
redis:
image: redis:alpine
restart: always
zookeeper:
image: zookeeper
restart: always
secrets:
postgres-password:
file: ./secrets/postgres-password
trimet-api-key:
file: ./secrets/trimet-api-key
volumes:
chronograf: {}
influxdb: {}
kafka: {}
pgdata: {}