-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
126 lines (115 loc) · 2.33 KB
/
docker-compose.yaml
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
119
120
121
122
123
124
125
126
version: "3"
services:
web-api-gateway:
image: "web-api-gateway"
build:
dockerfile: "./packages/web-app/Dockerfile"
context: "."
depends_on:
- "service-identity"
networks:
- "frontend"
- "backend"
ports:
- "3100"
environment:
NODE_ENV: "test"
PORT: "3100"
restart: "on-failure"
web-app:
image: "web-app"
build:
dockerfile: "./packages/web-app/Dockerfile"
context: "."
networks:
- "frontend"
ports:
- "3000"
depends_on:
- "web-api-gateway"
environment:
PORT: "3000"
restart: "on-failure"
web-landing:
image: "web-landing"
build:
dockerfile: "./packages/web-landing/Dockerfile"
context: "."
networks:
- "frontend"
ports:
- "3001"
environment:
PORT: "3001"
NGINX_PORT: "3001"
restart: "on-failure"
web-server:
image: "web-server"
build:
context: "./packages/web-server"
networks:
- "frontend"
ports:
- "80:80"
depends_on:
- "web-api-gateway"
- "web-app"
environment:
PORT: "80"
restart: "on-failure"
service-identity:
image: "service-identity"
build:
dockerfile: "./packages/service-identity/Dockerfile"
context: "."
networks:
- "backend"
ports:
- "51201"
environment:
NODE_ENV: "test"
URL: "0.0.0.0"
PORT: "51201"
restart: "on-failure"
# service-user:
# image: "service-user"
# build:
# context: "./packages/service-user"
# networks:
# - "backend"
# ports:
# - "51202"
# environment:
# NODE_ENV: "test"
# URL: "0.0.0.0"
# PORT: "51202"
# restart: "on-failure"
mongo:
image: mongo
restart: always
networks:
- "backend"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
redis:
image: "redis:alpine"
command: redis-server --requirepass admin_password
ports:
- "6379:6379"
networks:
- "backend"
mongo-express:
image: mongo-express
restart: always
networks:
- "backend"
ports:
- 8081:8081
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: example
networks:
frontend:
backend:
internal: false