mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-31 05:02:12 +00:00
Refactor healthcheck configurations in Docker Compose files
This commit is contained in:
@@ -2,24 +2,21 @@
|
||||
# slogan: Logto offers a comprehensive identity solution covering both the front and backend, complete with pre-built infrastructure and enterprise-grade solutions.
|
||||
# tags: logto,identity,login,authentication,oauth,oidc,openid
|
||||
# icon: svgs/logto_dark.svg
|
||||
# port: 3002
|
||||
|
||||
services:
|
||||
logto:
|
||||
image: svhd/logto:${TAG-latest}
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
image: svhd/logto:${TAG-latest}
|
||||
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
|
||||
environment:
|
||||
- SERVICE_FQDN_AUTH_3001
|
||||
- SERVICE_FQDN_AUTH_3002
|
||||
- TRUST_PROXY_HEADER=1
|
||||
- DB_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@postgres:5432/${POSTGRES_DB:-logto}
|
||||
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of Logto;
|
||||
# Or, you can leverage it for local testing.
|
||||
- ENDPOINT=$SERVICE_FQDN_AUTH
|
||||
- ADMIN_ENDPOINT=$SERVICE_FQDN_AUTH
|
||||
- ENDPOINT=$LOGTO_ENDPOINT
|
||||
- ADMIN_ENDPOINT=$LOGTO_ADMIN_ENDPOINT
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3002"]
|
||||
interval: 5s
|
||||
|
||||
Reference in New Issue
Block a user