Fixed dockerfile

This commit is contained in:
MarcWieland 2025-07-25 01:58:19 +02:00
parent 6d2970eae2
commit 86b40c42ef
2 changed files with 17 additions and 8 deletions

View File

@ -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

View File

@ -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;