working backend on docker (#226)

* working backend on docker

refactor of the dockerfiles to be more readable and independent.
full build of the backend (release only) within docker

* read `PORT` to u16

* Only need one `PORT` in the new backend

Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
This commit is contained in:
Daniel Maricic
2020-02-07 18:27:25 +01:00
committed by GitHub
parent 0a6cd08747
commit b665555de6
4 changed files with 20 additions and 16 deletions
+5 -8
View File
@@ -3,9 +3,9 @@ version: "3"
services:
telemetry-frontend:
build:
dockerfile: Dockerfile
dockerfile: frontend.Dockerfile
context: ./
# Copy in changes to the ui, so no need to rebulld the images.
# Copy in changes to the ui, so no need to rebuild the images.
volumes:
- /app/node_modules
- ./packages:/app/packages
@@ -14,12 +14,9 @@ services:
- 3000:3000
telemetry-backend:
build:
dockerfile: Dockerfile
dockerfile: backend.Dockerfile
context: ./
command: yarn start:backend
environment:
- TELEMETRY_SERVER=1024
- FEED_SERVER=8080
- PORT=8000
ports:
- 8080:8080
- 1024:1024
- 8000:8000