steedos-platform/.gitpod.yml

36 lines
1.0 KiB
YAML

image:
file: .gitpod.Dockerfile
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
ports:
- port: 5000
onOpen: open-preview
visibility: public
- port: 3100 # Creator
onOpen: open-preview
visibility: public
# List the start up tasks. You can start them in parallel in multiple terminals. See https://www.gitpod.io/docs/config-start-tasks/
tasks:
- init: |
mkdir -p /workspace/mongodb/data/db
command: |
mongod --replSet rs0 --dbpath /workspace/mongodb/data/db
- command: |
gp await-port 27017
mongo steedos --eval "rs.initiate()"
- command: |
redis-server --save "" --appendonly no --client-output-buffer-limit replica 0 0 0 --client-output-buffer-limit pubsub 0 0 0 --client-output-buffer-limit slave 0 0 0
- init: |
yarn
yarn bootstrap
yarn build
command: |
gp await-port 27017
gp await-port 6379
export ROOT_URL=$(gp url 5000)
yarn start
vscode:
extensions:
- dbaeumer.vscode-eslint