Skip to content

Commit

Permalink
Re-export enviroment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DukeManh committed Oct 31, 2021
1 parent c58979e commit 8d88407
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,24 @@ tasks:
init: |
npm install
docker-compose --env-file config/env.gitpod build
# GitPod workspace urls are not stable, we have to look up urls and build again
command: |
eval $(gp env -e GITPOD_API_URL=$(gp url 3000))
eval $(gp env -e GITPOD_WEB_URL=$(gp url 8000))
eval $(gp env -e GITPOD_MICROSERVICE_URL=$(gp url 8443))
docker-compose --env-file config/env.gitpod build
docker-compose --env-file config/env.gitpod up -d
npm run start
- name: Terminal
openMode: tab-after

ports:
# NextJS frontend
- port: 8000
onOpen: open-preview
visibility: public
onOpen: open-preview
# Microservice
- port: 8443
visibility: public
Expand All @@ -30,24 +37,31 @@ ports:
onOpen: ignore
# Redis server
- port: 6379
visibility: public
onOpen: ignore
# Elasticsearch server
- port: 9200
visibility: public
onOpen: ignore
# Firebase emulator
- port: 4000
visibility: public
onOpen: ignore
# Firestore emulator
- port: 8088
visibility: public
onOpen: ignore
# Traefik ui
# Traefik UI
- port: 8080
visibility: public
onOpen: ignore
# Login Page
- port: 8081
visibility: public
onOpen: ignore
# Static Web Content test
- port: 8888
visibility: public
onOpen: ignore

github:
Expand Down

0 comments on commit 8d88407

Please sign in to comment.