Fixed dockerfile
This commit is contained in:
parent
6d2970eae2
commit
86b40c42ef
@ -1,15 +1,24 @@
|
||||
version: "3.9"
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
container_name: schiri-backend
|
||||
ports:
|
||||
- "3000:3000"
|
||||
networks:
|
||||
- schiri-net
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
container_name: frontend
|
||||
container_name: schiri-frontend
|
||||
ports:
|
||||
- "5001:80"
|
||||
depends_on:
|
||||
- backend
|
||||
networks:
|
||||
- schiri-net
|
||||
|
||||
backend:
|
||||
build: ./backend
|
||||
container_name: backend
|
||||
expose:
|
||||
- "3000"
|
||||
networks:
|
||||
schiri-net:
|
||||
driver: bridge
|
||||
|
||||
@ -7,7 +7,7 @@ server {
|
||||
|
||||
# API wird intern an Express weitergereicht
|
||||
location ^~ /api/ {
|
||||
proxy_pass http://backend:3000/;
|
||||
proxy_pass http://schiri-backend:3000/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection keep-alive;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user