2022-07-05 16:40:00 +08:00
|
|
|
tasks:
|
2022-10-18 11:53:14 +08:00
|
|
|
- name: Database
|
2022-09-05 16:43:35 +08: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-18 11:53:14 +08:00
|
|
|
|
|
|
|
- name: Logto dev
|
2022-07-05 16:40:00 +08:00
|
|
|
init: |
|
2023-02-24 17:30:08 +08:00
|
|
|
nvm i 18
|
|
|
|
nvm use 18
|
2022-09-05 16:43:35 +08:00
|
|
|
pnpm i
|
|
|
|
pnpm prepack
|
2022-09-05 20:27:39 +08:00
|
|
|
cd packages/core
|
|
|
|
pnpm build
|
|
|
|
cd -
|
2023-04-02 14:12:30 +08:00
|
|
|
pnpm connectors:build
|
|
|
|
pnpm cli connector link
|
2022-07-05 16:40:00 +08:00
|
|
|
command: |
|
2022-10-18 11:53:14 +08:00
|
|
|
gp ports await 5432
|
|
|
|
sleep 3
|
2022-09-05 20:27:39 +08:00
|
|
|
export ENDPOINT=$(gp url 3001)
|
2023-02-24 17:30:08 +08:00
|
|
|
export ADMIN_ENDPOINT=$(gp url 3002)
|
2022-10-11 01:20:15 +08:00
|
|
|
pnpm cli db seed
|
2022-10-18 11:53:14 +08:00
|
|
|
pnpm start:dev
|
2022-07-05 16:40:00 +08:00
|
|
|
env:
|
2022-09-05 16:43:35 +08:00
|
|
|
TRUST_PROXY_HEADER: 1
|
2022-10-31 19:47:00 +08:00
|
|
|
DB_URL: postgres://postgres:p0stgr3s@127.0.0.1:5432/logto
|
2022-07-05 16:40:00 +08:00
|
|
|
|
|
|
|
ports:
|
|
|
|
- name: Logto
|
|
|
|
description: The Logto core service
|
|
|
|
port: 3001
|
2022-07-07 16:38:58 +08:00
|
|
|
visibility: public
|
2023-02-24 17:30:08 +08:00
|
|
|
- name: Admin Console
|
|
|
|
description: The Admin Console for Logto core service
|
|
|
|
port: 3002
|
|
|
|
visibility: public
|
2022-09-05 16:43:35 +08: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
|