-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (60 loc) · 1.6 KB
/
docker-compose.yaml
File metadata and controls
67 lines (60 loc) · 1.6 KB
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
version: "3.8"
services:
zookeeper:
image: wurstmeister/zookeeper
restart: unless-stopped
ports: [ "2181:2181" ]
kafka:
image: wurstmeister/kafka
restart: unless-stopped
ports: [ "9092:9092" ]
hostname: kafka
environment:
KAFKA_ADVERTISED_HOST_NAME: "kafka"
KAFKA_ADVERTISED_PORT: "9092"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
KAFKA_CREATE_TOPICS: "test_topic:1:1"
depends_on: [ "zookeeper" ]
database:
image: mongo
restart: always
ports: [ "27017:27017" ]
environment:
MONGO_INITDB_ROOT_USERNAME: "root"
MONGO_INITDB_ROOT_PASSWORD: "1234"
createbook:
build: createbook
container_name: createbook
restart: unless-stopped
ports: [ "8080:8080" ]
volumes:
- ./createbook:/app:cached,ro
- ./createbook/src:/app/src:cached,ro
environment:
PORT: "8080"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
DATABASE_USER: "root"
DATABASE_PASSWORD: "1234"
listbooks:
build: listbooks
container_name: listbooks
restart: unless-stopped
ports: [ "9090:9090" ]
volumes:
- ./listbooks:/app:cached,ro
- ./listbooks/src:/app/src:cached,ro
environment:
PORT: "9090"
KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
DATABASE_USER: "root"
DATABASE_PASSWORD: "1234"
frontend:
build: frontend
container_name: frontend
ports: [ "3000:3000" ]
tty: true
volumes:
- ./frontend:/frontend
- ./frontend/public:/frontend/public:cached,ro
- ./frontend/src:/frontend/src:cached,ro
depends_on: [ "listbooks" ]