-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (41 loc) · 914 Bytes
/
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
version: '3'
services:
zookeeper:
image: wurstmeister/zookeeper
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
ports:
- "9092:9092"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
depends_on:
- zookeeper
environment:
HOSTNAME_COMMAND: "hostname -i"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_CREATE_TOPICS: "events:1:1,bandit-arms:1:1"
bandits-stream:
image: bandits-stream
build: .
ports:
- "4460:4460"
volumes:
- .:/bandits
- "${HOME}/.ivy2/cache:/root/.ivy2/cache"
depends_on:
- zookeeper
- kafka
command: sbt startStream
bandits-server:
build: .
image: bandits-server
ports:
- "8080:8080"
volumes:
- .:/bandits
- "${HOME}/.ivy2/cache:/root/.ivy2/cache"
depends_on:
- bandits-stream
command: sbt startRestServer