-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
118 lines (116 loc) · 2.67 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
version: "3"
services:
zookeeper:
container_name: zookeper
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
postgres:
container_name: postgres
image: postgres
ports:
- 5432:5432
volumes:
- ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
app:
container_name: app
build: ./
# command: npm run dock
volumes:
- ./:/app
- /app/node_modules
depends_on:
- postgres
- kafka
# identity:
# container_name: identity
# build: ./packages/identity
# ports:
# - 8080:8080
# volumes:
# - ./packages/identity:/app
# environment:
# - PORT=8080
# - TOKEN_KEY=qwertyuiopodghnbxsxxn
# - POSTGRES_URL=postgres://postgres:postgres@localhost:5432/postgres
# - KAFKA_BOOTSTRAP_SERVERS=kafka:9092
# - KAFKA_TOPIC=topic1
# depends_on:
# - app
# - postgres
# - kafka
# others:
# container_name: others
# build: ./packages/others
# ports:
# - 8081:8081
# volumes:
# - ./packages/others:/app
# environment:
# - PORT=8081
# - KAFKA_BOOTSTRAP_SERVERS=kafka:9092
# - KAFKA_TOPIC=topic1
# depends_on:
# - app
# - kafka
# products:
# build:
# dockerfile: Dockerfile
# context: ./products
# container_name: products
# ports:
# - "8002:8002"
# restart: always
# depends_on:
# - "nosql-db"
# volumes:
# - .:/app
# - /app/products/node_modules
# env_file:
# - ./products/.env.dev
# shopping:
# build:
# dockerfile: Dockerfile
# context: ./shopping
# container_name: shopping
# ports:
# - "8003:8003"
# restart: always
# depends_on:
# - "nosql-db"
# volumes:
# - .:/app
# - /app/shopping/node_modules
# env_file:
# - ./shopping/.env.dev
# customer:
# build:
# dockerfile: Dockerfile
# context: ./customer
# container_name: customer
# ports:
# - "8001:8001"
# restart: always
# depends_on:
# - "nosql-db"
# volumes:
# - .:/app/
# - /app/customer/node_modules
# env_file:
# - ./customer/.env.dev