Skip to content

Commit

Permalink
Add healtcheck for logto service.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulla-ashurov committed Jun 29, 2023
1 parent 0d17da9 commit d032374
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/with-external-db/docker-compose-with-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
app-migrations:
condition: service_completed_successfully
logto:
condition: service_started
condition: service_healthy
ports:
- 3000:3000
env_file:
Expand Down Expand Up @@ -78,6 +78,11 @@ services:
- 3002:3002
env_file:
- logto.env
healthcheck:
test: ["CMD", "wget", "--quiet", "--spider", "--tries=1", "--timeout=5", "http://localhost:3002/api/status"]
interval: 10s
timeout: 5s
retries: 5
profiles:
- logto
- app
Expand Down

0 comments on commit d032374

Please sign in to comment.