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
|
2023-03-03 09:56:38 -05:00
|
|
|
image: svhd/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
|
2023-02-24 08:50:57 -05:00
|
|
|
- 3002:3002
|
2022-06-23 06:17:02 -05:00
|
|
|
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
|
2023-01-04 01:57:14 -05:00
|
|
|
# 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
|
2023-02-24 08:50:57 -05:00
|
|
|
- ADMIN_ENDPOINT
|
2022-06-23 06:17:02 -05:00
|
|
|
postgres:
|
2024-12-04 21:33:21 -05:00
|
|
|
image: postgres:17-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
|