mirror of
https://github.com/getlago/lago.git
synced 2025-01-31 01:45:07 +07:00
feat(docker-compose): Add Docker Compose healthcheck configuration to api and api-worker (#289)
Add functionality mentioned in #853
This commit is contained in:
parent
7aa18c9ead
commit
b83d29ac02
@ -39,6 +39,8 @@ services:
|
||||
- db
|
||||
- redis
|
||||
command: ["./scripts/start.sh"]
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000"]
|
||||
environment:
|
||||
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
|
||||
@ -123,6 +125,8 @@ services:
|
||||
depends_on:
|
||||
- api
|
||||
command: ["./scripts/start.worker.sh"]
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "bundle exec sidekiqmon | grep $(hostname) || exit 1"]
|
||||
environment:
|
||||
- LAGO_API_URL=${LAGO_API_URL:-http://localhost:3000}
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@${POSTGRES_HOST:-db}:${POSTGRES_PORT:-5432}/${POSTGRES_DB:-lago}
|
||||
|
Loading…
Reference in New Issue
Block a user