Skip to content

Commit e3ce2b7

Browse files
committed
CI/CD: docker compose discovery-server 헬스 체크 추가
1 parent 22c6e5d commit e3ce2b7

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docker/prod/docker-compose.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ services:
66
- "myhost:host-gateway"
77
env_file:
88
- ./common.env
9+
healthcheck:
10+
test: [ "CMD", "curl", "-f", "http://localhost:8761/actuator/health" ]
11+
interval: 10s
12+
timeout: 5s
13+
retries: 10
914

1015
gateway-service:
1116
depends_on:
12-
- discovery-server
17+
discovery-server:
18+
condition: service_healthy
1319
image: minskim2/gateway-service:latest
1420
ports:
1521
- "8880:8880"

0 commit comments

Comments
 (0)