2022-06-23 06:17:02 -05:00
|
|
|
# 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}
|
2022-10-19 02:10:58 -05:00
|
|
|
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
|
2022-06-23 06:17:02 -05:00
|
|
|
ports:
|
|
|
|
- 3001:3001
|
|
|
|
environment:
|
2022-07-05 06:56:20 -05:00
|
|
|
- TRUST_PROXY_HEADER=1
|
2022-10-19 05:57:00 -05:00
|
|
|
- DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto
|
2022-06-23 06:17:02 -05:00
|
|
|
postgres:
|
|
|
|
image: postgres:14-alpine
|
2022-07-05 08:40:25 -05:00
|
|
|
user: postgres
|
2022-06-23 06:17:02 -05:00
|
|
|
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
|