Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b061a5f

Browse files
committedAug 16, 2024
Added healthcheck
1 parent 48ac659 commit b061a5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎docker-compose-tests.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ services:
2828

2929
replicator:
3030
image: python:3.12.4-slim-bookworm
31-
command: bash -c "pip install -r /app/requirements.txt && tail -f /dev/null"
31+
command: bash -c "pip install -r /app/requirements.txt && pip install -r /app/requirements-dev.txt && touch /tmp/ready && tail -f /dev/null"
32+
healthcheck:
33+
test: [ 'CMD-SHELL', 'test -f /tmp/ready' ]
34+
interval: 2s
35+
retries: 100
36+
start_period: 10s
3237
network_mode: host
3338
volumes:
3439
- ./:/app/

0 commit comments

Comments
 (0)
Please sign in to comment.