This repository was archived by the owner on Jan 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.dev.yml
118 lines (108 loc) · 2.37 KB
/
docker-compose.dev.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: '2'
services:
client-rebuilder:
build:
context: ./client-builder
dockerfile: Dockerfile
command: sh -c "npm run build && npm run watch"
container_name: client-rebuilder
volumes:
- ./client:/build/client:rw
- ./apigateway/client/dist:/build/client/dist:rw
- /build/node_modules
authdb:
build:
context: ./authdb
dockerfile: Dockerfile
container_name: authdb
ports:
- 3306:3306
apigateway:
build:
context: ./apigateway
dockerfile: Dockerfile.dev
container_name: apigateway
depends_on:
- client-rebuilder
ports:
- 5859:5859
- 3000:3000
env_file:
- ./apigateway/debug.env
volumes:
- ./apigateway:/app
- /app/node_modules
command: nodemon --inspect=0.0.0.0:5859 --legacy-watch app.js
links:
- authdb
checkout:
build:
context: ./checkoutService
dockerfile: Dockerfile
container_name: checkout
ports:
- 5000:5000
environment:
ASPNETCORE_ENVIRONMENT: dev
ASPNETCORE_URLS: "http://*:5000"
links:
- mongo
stickers:
depends_on:
- kafka
- redis
build:
context: ./stickerService
dockerfile: Dockerfile.dev
container_name: stickers
env_file:
- ./stickerService/debug.env
command: /bin/sh -c "node init-db.js && nodemon --inspect=0.0.0.0:5959 --legacy-watch index.js"
ports:
- 2000:2000
- 5959:5959
links:
- mongo
volumes:
- ./stickerService:/app
- /app/node_modules
session:
depends_on:
- kafka
- redis
- stickers
build:
context: ./sessionService
dockerfile: Dockerfile.dev
container_name: session
env_file:
- ./sessionService/debug.env
command: nodemon --inspect=0.0.0.0:5757 --legacy-watch index.js
ports:
- 4000:4000
- 5757:5757
volumes:
- ./sessionService:/app
- /app/node_modules
mongo:
image: mongo:3.5.5
redis:
image: redis:3.2.8-alpine
ports:
- 6379:6379
zookeeper:
image: wurstmeister/zookeeper
ports:
- 2181:2181
kafka:
depends_on:
- zookeeper
image: wurstmeister/kafka
ports:
- 9092:9092
environment:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_CREATE_TOPICS: TrendingStickers:1:1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock