2022-07-05 16:40:00 +08:00
|
|
|
tasks:
|
2022-09-05 16:43:35 +08:00
|
|
|
- name: DB Server
|
|
|
|
init: docker pull postgres:14-alpine
|
|
|
|
command: docker run -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=p0stgr3s postgres:14-alpine
|
|
|
|
- name: Logto Dev Mode
|
2022-07-05 16:40:00 +08:00
|
|
|
init: |
|
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
|
|
|
|
pnpm add-official-connectors
|
|
|
|
cd -
|
2022-07-05 16:40:00 +08:00
|
|
|
command: |
|
2022-09-05 20:27:39 +08:00
|
|
|
export ENDPOINT=$(gp url 3001)
|
|
|
|
pnpm lerna --ignore=@logto/integration-test run --parallel dev
|
2022-07-05 16:40:00 +08:00
|
|
|
env:
|
2022-09-05 16:43:35 +08:00
|
|
|
ALL_YES: 1
|
|
|
|
NO_INQUIRY: 0
|
|
|
|
TRUST_PROXY_HEADER: 1
|
|
|
|
DB_URL_DEFAULT: postgres://postgres:p0stgr3s@127.0.0.1:5432
|
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
|
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
|