Skip to content

Commit

Permalink
Added healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
bakwc committed Aug 16, 2024
1 parent 48ac659 commit b061a5f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker-compose-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ services:

replicator:
image: python:3.12.4-slim-bookworm
command: bash -c "pip install -r /app/requirements.txt && tail -f /dev/null"
command: bash -c "pip install -r /app/requirements.txt && pip install -r /app/requirements-dev.txt && touch /tmp/ready && tail -f /dev/null"
healthcheck:
test: [ 'CMD-SHELL', 'test -f /tmp/ready' ]
interval: 2s
retries: 100
start_period: 10s
network_mode: host
volumes:
- ./:/app/

0 comments on commit b061a5f

Please sign in to comment.