-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
154 lines (142 loc) · 2.79 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
version: "3"
services:
# search-mongodb:
# image: "mongo:latest"
# # environment:
# # MONGO_INITDB_ROOT_USERNAME: root
# # MONGO_INITDB_ROOT_PASSWORD: root
# ports:
# - 27023:27017
# depends_on:
# - servicediscovery
# - apigateway
reactclient:
build: client
ports:
- 80:80
servicediscovery:
build: service.discovery
ports:
- 8761:8761
restart: on-failure
apigateway:
env_file:
- .env
build: api.gateway
depends_on:
- servicediscovery
ports:
- 8080:8080
restart: on-failure
authserver:
environment:
STARTUP_DELAY: 5
build: authorization-server
depends_on:
- servicediscovery
- apigateway
ports:
- 8090:8090
restart: on-failure
users:
env_file:
- .env
environment:
STARTUP_DELAY: 80
build: users
depends_on:
- servicediscovery
- apigateway
- users-mongodb
- search
- authserver
ports:
- 8081:8081
restart: on-failure
users-mongodb:
image: "mongo:latest"
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: root
ports:
- 27021:27017
depends_on:
- servicediscovery
- apigateway
search:
env_file:
- .env
environment:
STARTUP_DELAY: 10
build: search
depends_on:
- servicediscovery
- apigateway
- es01
# - search-mongodb
ports:
- 8083:8083
restart: on-failure
es01:
image: docker.elastic.co/elasticsearch/elasticsearch:7.10.1
environment:
- node.name=es01
- cluster.name=es-docker-cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- "http.port=9200"
- "http.publish_host=_local_"
- network.host=0.0.0.0
ulimits:
memlock:
soft: -1
hard: -1
ports:
- 9200:9200
- 9300:9300
restart: on-failure
images:
env_file:
- .env
environment:
STARTUP_DELAY: 80
build: images
depends_on:
- servicediscovery
- apigateway
- images-mongodb
- search
- authserver
ports:
- 8084:8084
restart: on-failure
images-mongodb:
image: "mongo:latest"
ports:
- 27024:27017
depends_on:
- servicediscovery
- apigateway
restart: on-failure
annotations:
env_file:
- .env
environment:
STARTUP_DELAY: 10
build: annotations
depends_on:
- servicediscovery
- apigateway
- annotations-mongodb
- authserver
ports:
- 8082:8082
restart: on-failure
annotations-mongodb:
image: "mongo:latest"
ports:
- 27022:27017
depends_on:
- servicediscovery
- apigateway