We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f58fd30 commit 505fa8eCopy full SHA for 505fa8e
backend/docker-compose.yml
@@ -7,8 +7,8 @@ services:
7
- "8080:8080"
8
env_file: ".env" #EC2에 올려둔 .env 사용
9
depends_on:
10
- - mysql
11
- - elasticsearch
+ elasticsearch:
+ condition: service_healthy
12
13
mysql:
14
image: mysql:8.0
@@ -24,7 +24,7 @@ services:
24
volumes:
25
- mysql_data:/var/lib/mysql
26
27
- elastic:
28
build:
29
context: .
30
dockerfile: Dockerfile.elastic
@@ -36,5 +36,10 @@ services:
36
- xpack.security.enabled=false
37
- xpack.security.http.ssl.enabled=false
38
- ES_JAVA_OPTS=-Xms256m -Xmx256m
39
+ healthcheck:
40
+ test: ["CMD-SHELL", "curl -f http://localhost:9200 || exit 1"]
41
+ interval: 10s
42
+ timeout: 5s
43
+ retries: 5
44
- mysql_data:
45
+ mysql_data:
0 commit comments