0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

Merge pull request #3223 from logto-io/gao-update-docker-compose

chore: update docker-compose file and README
This commit is contained in:
Gao Sun 2023-02-25 23:46:32 +08:00 committed by GitHub
commit 89715baaa6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 5 deletions

View file

@ -52,13 +52,9 @@ Boringly, we call it "[customer identity access management](https://en.wikipedia
### Interactive demo ### Interactive demo
[![Uffizzi](https://cdn.uffizzi.com/demo-button.svg)](https://app.uffizzi.com/demo/github.com/logto-io/logto)
Recommended. Click and wait for a few seconds to start exploring Logto in your own browser!
[![GitPod](https://raw.githubusercontent.com/gitpod-io/gitpod/30da76375c996109f243491b23e47feefab7217f/components/dashboard/public/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/logto-io/demo) [![GitPod](https://raw.githubusercontent.com/gitpod-io/gitpod/30da76375c996109f243491b23e47feefab7217f/components/dashboard/public/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/logto-io/demo)
If you launch Logto via GitPod, please wait until you see the message like `App is running at https://3001-...gitpod.io` in the terminal, press Cmd (or Ctrl on Windows) and click the URL to continue your Logto journey. If you launch Logto via GitPod, please wait until you see the message like `App is running at https://3002-...gitpod.io` in the terminal, press Cmd (or Ctrl on Windows) and click the URL starts with `https://3002-` to continue your Logto journey.
### Launch Logto ### Launch Logto

View file

@ -9,12 +9,14 @@ services:
entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"] entrypoint: ["sh", "-c", "npm run cli db seed -- --swe && npm start"]
ports: ports:
- 3001:3001 - 3001:3001
- 3002:3002
environment: environment:
- TRUST_PROXY_HEADER=1 - TRUST_PROXY_HEADER=1
- DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto - DB_URL=postgres://postgres:p0stgr3s@postgres:5432/logto
# Mandatory for GitPod to map host env to the container, thus GitPod can dynamically configure the public URL of 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. # Or, you can leverage it for local testing.
- ENDPOINT - ENDPOINT
- ADMIN_ENDPOINT
postgres: postgres:
image: postgres:14-alpine image: postgres:14-alpine
user: postgres user: postgres