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