0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-23 20:33:16 -05:00
logto/docker-compose.yml

28 lines
665 B
YAML
Raw Normal View History

# This compose file is for demonstration only, do not use in prod.
version: "3.9"
services:
app:
depends_on:
2022-07-05 06:56:20 -05:00
postgres:
condition: service_healthy
2022-07-01 08:02:53 -05:00
image: ghcr.io/logto-io/logto:${TAG-latest}
ports:
- 3001:3001
environment:
2022-07-05 06:56:20 -05:00
- ALL_YES=1
- NO_INQUIRY=0
- TRUST_PROXY_HEADER=1
- DB_URL_DEFAULT=postgres://postgres:p0stgr3s@postgres:5432
- ENDPOINT
postgres:
image: postgres:14-alpine
user: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: p0stgr3s
2022-07-05 06:56:20 -05:00
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5