-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitpod.yml
52 lines (50 loc) · 1.14 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
tasks:
- name: Database
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
init: |
nvm i 18
nvm use 18
pnpm i
pnpm prepack
cd packages/core
pnpm build
cd -
pnpm connectors:build
pnpm cli connector link
command: |
gp ports await 5432
sleep 3
export ENDPOINT=$(gp url 3001)
export ADMIN_ENDPOINT=$(gp url 3002)
pnpm cli db seed
pnpm start:dev
env:
TRUST_PROXY_HEADER: 1
DB_URL: postgres://postgres:[email protected]:5432/logto
ports:
- name: Logto
description: The Logto core service
port: 3001
visibility: public
- name: Admin Console
description: The Admin Console for Logto core service
port: 3002
visibility: public
- 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