Skip to content

Commit

Permalink
infra: try angular dev server instead of nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Jun 10, 2024
1 parent 7d079df commit 83aa95b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ services:
context: .
dockerfile: infrastructure/docker/Dockerfile
ports:
- 8999:80
- 8999:4200

2 changes: 1 addition & 1 deletion infrastructure/docker-compose.run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ services:
image: ${DOCKER_IMAGE}:${DOCKER_TAG}
restart: unless-stopped
ports:
- ${SERVER_PORT}:80
- ${SERVER_PORT}:4200
11 changes: 8 additions & 3 deletions infrastructure/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM nginx:1.23.4-alpine-slim
FROM node:20-alpine

COPY ./dist/sfs-admin/ /usr/share/nginx/html
COPY ./infrastructure/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY ./ app/

WORKDIR app

RUN npm install

ENTRYPOINT npm run start
4 changes: 2 additions & 2 deletions proxy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const PROXY_CONFIG = [
context: [
"/api/**",
],
target: 'http://localhost:8000',
secure: false,
target: 'https://backend.app.sfscon.testingmachine.eu',
secure: true,
ws: true,
changeOrigin: true,
},
Expand Down

0 comments on commit 83aa95b

Please sign in to comment.