10
10
# See the License for the specific language governing permissions and
11
11
# limitations under the License.
12
12
13
-
14
13
services :
15
14
16
15
crapi-identity :
@@ -39,6 +38,7 @@ services:
39
38
40
39
- SMTP_AUTH=true
41
40
- SMTP_STARTTLS=true
41
+ - JWT_EXPIRATION=604800000
42
42
- ENABLE_LOG4J=${ENABLE_LOG4J:-false}
43
43
- API_GATEWAY_URL=https://api.mypremiumdealership.com
44
44
- TLS_ENABLED=${TLS_ENABLED:-false}
@@ -53,10 +53,10 @@ services:
53
53
mongodb :
54
54
condition : service_healthy
55
55
healthcheck :
56
- test : /app/health.sh
57
- interval : 15s
58
- timeout : 15s
59
- retries : 15
56
+ test : /app/health.sh
57
+ interval : 15s
58
+ timeout : 15s
59
+ retries : 15
60
60
deploy :
61
61
resources :
62
62
limits :
@@ -92,10 +92,10 @@ services:
92
92
crapi-identity :
93
93
condition : service_healthy
94
94
healthcheck :
95
- test : /app/health.sh
96
- interval : 15s
97
- timeout : 15s
98
- retries : 15
95
+ test : /app/health.sh
96
+ interval : 15s
97
+ timeout : 15s
98
+ retries : 15
99
99
deploy :
100
100
resources :
101
101
limits :
@@ -135,10 +135,10 @@ services:
135
135
crapi-community :
136
136
condition : service_healthy
137
137
healthcheck :
138
- test : /app/health.sh
139
- interval : 15s
140
- timeout : 15s
141
- retries : 15
138
+ test : /app/health.sh
139
+ interval : 15s
140
+ timeout : 15s
141
+ retries : 15
142
142
deploy :
143
143
resources :
144
144
limits :
@@ -164,10 +164,10 @@ services:
164
164
crapi-workshop :
165
165
condition : service_healthy
166
166
healthcheck :
167
- test : curl 0.0.0.0:80/web/health
168
- interval : 15s
169
- timeout : 15s
170
- retries : 15
167
+ test : curl 0.0.0.0:80/web/health
168
+ interval : 15s
169
+ timeout : 15s
170
+ retries : 15
171
171
deploy :
172
172
resources :
173
173
limits :
@@ -184,10 +184,10 @@ services:
184
184
# ports:
185
185
# - "${LISTEN_IP:-127.0.0.1}:5432:5432"
186
186
healthcheck :
187
- test : ["CMD-SHELL", "pg_isready"]
188
- interval : 15s
189
- timeout : 15s
190
- retries : 15
187
+ test : [ "CMD-SHELL", "pg_isready" ]
188
+ interval : 15s
189
+ timeout : 15s
190
+ retries : 15
191
191
volumes :
192
192
- postgresql-data:/var/lib/postgresql/data/
193
193
deploy :
@@ -205,11 +205,11 @@ services:
205
205
# ports:
206
206
# - "${LISTEN_IP:-127.0.0.1}:27017:27017"
207
207
healthcheck :
208
- test : echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet
209
- interval : 15s
210
- timeout : 15s
211
- retries : 15
212
- start_period : 20s
208
+ test : echo 'db.runCommand("ping").ok' | mongo mongodb:27017/test --quiet
209
+ interval : 15s
210
+ timeout : 15s
211
+ retries : 15
212
+ start_period : 20s
213
213
volumes :
214
214
- mongodb-data:/data/db
215
215
deploy :
@@ -226,13 +226,13 @@ services:
226
226
MH_MONGO_URI : admin:crapisecretpassword@mongodb:27017
227
227
MH_STORAGE : mongodb
228
228
ports :
229
- # - "127.0.0.1:1025:1025" # smtp server
229
+ # - "127.0.0.1:1025:1025" # smtp server
230
230
- " ${LISTEN_IP:-127.0.0.1}:8025:8025" # Mail ui
231
231
healthcheck :
232
- test : ["CMD", "nc", "-z", "localhost", "8025"]
233
- interval : 15s
234
- timeout : 15s
235
- retries : 15
232
+ test : [ "CMD", "nc", "-z", "localhost", "8025" ]
233
+ interval : 15s
234
+ timeout : 15s
235
+ retries : 15
236
236
deploy :
237
237
resources :
238
238
limits :
@@ -245,11 +245,11 @@ services:
245
245
# ports:
246
246
# - "${LISTEN_IP:-127.0.0.1}:8443:443" # https
247
247
healthcheck :
248
- test : curl -vk 0.0.0.0: 443
249
- interval : 15s
250
- timeout : 15s
251
- retries : 15
252
- start_period : 15s
248
+ test : echo -n "GET / HTTP/1.1\n\n" > /dev/tcp/api.mypremiumdealership.com/ 443
249
+ interval : 15s
250
+ timeout : 15s
251
+ retries : 15
252
+ start_period : 15s
253
253
deploy :
254
254
resources :
255
255
limits :
0 commit comments