forked from devicehive/devicehive-backend-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
66 lines (61 loc) · 1.57 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
version: "3"
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
restart: unless-stopped
environment:
ZOOKEEPER_CLIENT_PORT: 2181
kafka:
image: wurstmeister/kafka:1.0.0
ports:
- "9092:9092"
links:
- "zookeeper"
restart: unless-stopped
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
postgres:
image: postgres:10
ports:
- "5432:5432"
restart: unless-stopped
environment:
POSTGRES_USER: ${DH_POSTGRES_USERNAME:-postgres}
POSTGRES_PASSWORD: ${DH_POSTGRES_PASSWORD:-12345}
POSTGRES_DB: ${DH_POSTGRES_DB:-devicehive}
wsproxy:
image: devicehive/devicehive-ws-proxy:${DH_WS_PROXY_TAG:-development}
ports:
- "3000:3000"
links:
- "kafka"
restart: unless-stopped
environment:
KAFKA.KAFKA_HOSTS: ${DH_KAFKA_BOOTSTRAP_SERVERS:-kafka:9092}
PROXY.WEB_SOCKET_SERVER_HOST: 'wsproxy'
KAFKA.LOGGER_LEVEL: 5
hazelcast:
image: devicehive/devicehive-hazelcast:${DH_TAG:-development}
ports:
- "5701:5701"
restart: unless-stopped
environment:
MAX_HEAP_SIZE: "512m"
MIN_HEAP_SIZE: "512m"
backend:
build: .
environment:
PROXY.WS_PROXY_ENDPOINT: "ws://wsproxy:3000"
HAZELCAST.ADDRESSES: "hazelcast:5701"
POSTGRES.HOST: "postgres"
POSTGRES.PORT: 5432
POSTGRES.DATABASE: "devicehive"
POSTGRES.PASSWORD: "12345"
POSTGRES.USER: "postgres"
links:
- postgres
- wsproxy
- hazelcast