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

53 lines
1.1 KiB
YAML
Raw Normal View History

2022-07-05 03:40:00 -05:00
tasks:
2022-10-17 22:53:14 -05:00
- name: Database
2022-09-05 03:43:35 -05:00
init: docker pull postgres:14-alpine
command: docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=p0stgr3s postgres:14-alpine
2022-10-17 22:53:14 -05:00
- name: Logto dev
2022-07-05 03:40:00 -05:00
init: |
2023-02-24 04:30:08 -05:00
nvm i 18
nvm use 18
2022-09-05 03:43:35 -05:00
pnpm i
pnpm prepack
2022-09-05 07:27:39 -05:00
cd packages/core
pnpm build
cd -
pnpm connectors:build
pnpm cli connector link
2022-07-05 03:40:00 -05:00
command: |
2022-10-17 22:53:14 -05:00
gp ports await 5432
sleep 3
2022-09-05 07:27:39 -05:00
export ENDPOINT=$(gp url 3001)
2023-02-24 04:30:08 -05:00
export ADMIN_ENDPOINT=$(gp url 3002)
2022-10-10 12:20:15 -05:00
pnpm cli db seed
2022-10-17 22:53:14 -05:00
pnpm start:dev
2022-07-05 03:40:00 -05:00
env:
2022-09-05 03:43:35 -05:00
TRUST_PROXY_HEADER: 1
2022-10-31 06:47:00 -05:00
DB_URL: postgres://postgres:p0stgr3s@127.0.0.1:5432/logto
2022-07-05 03:40:00 -05:00
ports:
- name: Logto
description: The Logto core service
port: 3001
visibility: public
2023-02-24 04:30:08 -05:00
- name: Admin Console
description: The Admin Console for Logto core service
port: 3002
visibility: public
2022-09-05 03:43:35 -05:00
- name: Postgres
port: 5432
visibility: public
onOpen: ignore
- port: 5001
onOpen: ignore
- port: 5002
onOpen: ignore
- port: 5003
onOpen: ignore
- port: 6001
onOpen: ignore
- port: 6002
onOpen: ignore
- port: 6003
onOpen: ignore