-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (68 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
70 lines (68 loc) · 1.39 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
68
69
version: "3.9"
services:
database:
image: mongo:4.0-xenial
ports:
- 27017:27017
volumes:
- mongo_db:/data/db
zookeeper:
container_name: zookeeper
image: wurstmeister/zookeeper
ports:
- 2181:2181
kafka:
container_name: kafka
image: wurstmeister/kafka
ports:
- 9092:9092
volumes:
- ./data/kafka:/var/run/docker.sock
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
depends_on:
- zookeeper
users:
build: ./backend/UsersService
ports:
- 3001:3000
volumes:
- ./backend/UsersService:/src
depends_on:
- database
- kafka
environment:
- DB_URL: mongodb://database:27017
- KAFKA_SERVER: kafka:9092
transaction:
build: ./backend/TransactionService
ports:
- 3002:3000
volumes:
- ./backend/TransactionService:/src
depends_on:
- database
- kafka
environment:
- DB_URL: mongodb://database:27017
- KAFKA_SERVER: kafka:9092
frontend:
build: ./app_frontend
ports:
- 3003:3000
volumes:
- ./app_frontend/frontend:/app
nginx:
image: nginx:latest
ports:
- 4000:4000
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- users
- frontend
- database
- transaction
volumes:
mongo_db: