2022-11-02 21:34:12 -05:00
|
|
|
{
|
|
|
|
"image": "mcr.microsoft.com/devcontainers/universal:2",
|
|
|
|
"features": {
|
|
|
|
"ghcr.io/devcontainers/features/node:1": {}
|
|
|
|
},
|
2023-04-02 01:12:30 -05:00
|
|
|
"updateContentCommand": "npm i -g pnpm && pnpm i && pnpm prepack && pnpm connectors:build && pnpm cli connector link -p .",
|
2022-11-02 21:34:12 -05:00
|
|
|
"postStartCommand": "docker run -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=p0stgr3s postgres:14-alpine",
|
|
|
|
"postAttachCommand": "pnpm cli db seed && [[ ! -z $CODESPACES ]] && export ENDPOINT=https://$CODESPACE_NAME-3001.preview.app.github.dev",
|
|
|
|
"containerEnv": {
|
|
|
|
"DB_URL": "postgres://postgres:p0stgr3s@localhost:5432/logto",
|
|
|
|
"TRUST_PROXY_HEADER": "1"
|
|
|
|
}
|
|
|
|
}
|