0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: add Uffizzi demo button in README (#3032)

This commit is contained in:
Grayson Adkins 2023-02-10 02:03:53 -06:00 committed by GitHub
parent d4743ec1b9
commit 24f2cd20e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 4 deletions

View file

@ -42,12 +42,18 @@ Boringly, we call it "[customer identity access management](https://en.wikipedia
- Visit our 🎨 [website](https://logto.io) for a brief introduction if you are new to Logto.
- A step-by-step guide is available on 📖 [docs.logto.io](https://docs.logto.io).
### 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)
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.
### Launch Logto
#### Online demo (GitPod)
[Click here](https://gitpod.io/#https://github.com/logto-io/demo) to launch Logto via GitPod. Once you see the message like `App is running at https://3001-...gitpod.io` in the terminal, press Cmd (or Ctrl) and click the URL to continue your Logto journey.
#### Docker Compose
Docker Compose CLI usually comes with [Docker Desktop](https://www.docker.com/products/docker-desktop).

View file

@ -0,0 +1,37 @@
# This compose file is for demonstration only, do not use in prod.
version: "3.9"
x-uffizzi:
ingress:
service: app
port: 3001
services:
app:
depends_on:
- "postgres"
image: registry.uffizzi.com/logto-io/logto:prerelease
ports:
- 3001:3001
environment:
TRUST_PROXY_HEADER: 1
DB_URL: postgres://postgres:p0stgr3s@localhost:5432/logto
deploy:
resources:
limits:
memory: 2000M
entrypoint: /bin/sh
command:
- "-c"
- "npm run cli db seed -- --swe && ENDPOINT=$$UFFIZZI_URL npm start"
postgres:
image: postgres:14-alpine
user: postgres
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "p0stgr3s"
deploy:
resources:
limits:
memory: 500M