Skip to content

Commit a7ece97

Browse files
Add healthcheck on docker image
1 parent f235fa0 commit a7ece97

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docker-compose.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ services:
1313
volumes:
1414
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
1515
- "/var/run/docker.sock:/var/run/docker.sock"
16+
healthcheck:
17+
test: ["CMD", "curl", "-f", "http://localhost:4566/_localstack/health"]
18+
interval: 10s
19+
timeout: 5s
20+
retries: 5

0 commit comments

Comments
 (0)