Skip to content

Commit

Permalink
ci: add healthcheck to compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
slashtechno committed Jan 30, 2025
1 parent bada44a commit 750c1b5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions backend/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ services:
build: .
ports:
- "8000:8000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/docs"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# volumes:
# - ./settings.toml:/app/settings.toml
# - ./.secrets.toml:/app/.secrets.toml
tty: true
# - ./.secrets.toml:/app/.secrets.toml

0 comments on commit 750c1b5

Please sign in to comment.