From c7f4e68a062b5b272f65660b139bb022b8436328 Mon Sep 17 00:00:00 2001 From: Sieciech Date: Fri, 23 Jul 2021 19:21:40 +0000 Subject: [PATCH] Fix angular (#14) Co-authored-by: Sieciech Reviewed-on: http://git.fufle.net/Community/CureNet/pulls/14 Co-Authored-By: Sieciech Co-Committed-By: Sieciech --- docker/Dockerfile | 2 +- docker/docker-compose.yml | 7 ++++++- docker/startup.sh | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 3f01d67..b6fbb8f 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -43,7 +43,7 @@ VOLUME /web/backend/vendor VOLUME /web/backend/var VOLUME /web/frontend/node_modules -EXPOSE 7700 7780 7781 +EXPOSE 7700 7780 7781 49153 STOPSIGNAL SIGQUIT diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 4678e24..b165d7b 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -4,13 +4,18 @@ services: build: . ports: - 7700:7700 + - 49153:49153 expose: - 7780:7780 - 7781:7781 volumes: - .:/web/config - ../src/backend:/web/backend:cached - - ../src/frontend:/web/frontend:cached + - type: bind + target: /web/frontend + source: ../src/frontend + volume: + nocopy: true - ./logs:/var/log - vendor:/web/backend/vendor - var:/web/backend/var diff --git a/docker/startup.sh b/docker/startup.sh index 0acb263..19336ff 100644 --- a/docker/startup.sh +++ b/docker/startup.sh @@ -42,4 +42,4 @@ echo "> Configure angular" npm ci echo "> Starting angular" - ng serve + ng serve --disable-host-check --host 0.0.0.0 --poll