Loading 01_backend/__pycache__/ilo.cpython-39.pyc (4.76 KiB) File changed.No diff preview for this file type. View original file View changed file 01_backend/__pycache__/main.cpython-39.pyc (2.46 KiB) File changed.No diff preview for this file type. View original file View changed file Dockerfile.backend +1 −1 Original line number Diff line number Diff line Loading @@ -27,4 +27,4 @@ COPY 01_backend/ . # Die CMD-Anweisung im Dockerfile wird durch die 'command' Anweisung in docker-compose.yml # überschrieben, wenn du docker-compose verwendest. Du kannst sie kommentiert lassen # oder entfernen, wenn du sie nur mit docker-compose starten willst. CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "main:app"] Dockerfile.frontend +1 −1 Original line number Diff line number Diff line Loading @@ -14,5 +14,5 @@ COPY 02_frontend/ ./ RUN npm run build FROM nginx:stable-alpine COPY --from=build /app/build /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html COPY 00_nginx/default.conf /etc/nginx/conf.d/default.conf No newline at end of file docker-compose.yml +2 −11 Original line number Diff line number Diff line services: nginx: image: nginx:latest container_name: nginx ports: - "80:80" volumes: - ./00_nginx/default.conf:/etc/nginx/conf.d/default.conf - ./frontend/dist:/usr/share/nginx/html # statisches Frontend depends_on: - backend backend: build: context: . Loading @@ -28,5 +17,7 @@ services: container_name: frontend # KEIN NGINX hier nötig – nur Build-Zweck # kein ports:, kein volumes: (wird nach Build in nginx gemountet) ports: - "8080:80" depends_on: - backend Loading
01_backend/__pycache__/ilo.cpython-39.pyc (4.76 KiB) File changed.No diff preview for this file type. View original file View changed file
01_backend/__pycache__/main.cpython-39.pyc (2.46 KiB) File changed.No diff preview for this file type. View original file View changed file
Dockerfile.backend +1 −1 Original line number Diff line number Diff line Loading @@ -27,4 +27,4 @@ COPY 01_backend/ . # Die CMD-Anweisung im Dockerfile wird durch die 'command' Anweisung in docker-compose.yml # überschrieben, wenn du docker-compose verwendest. Du kannst sie kommentiert lassen # oder entfernen, wenn du sie nur mit docker-compose starten willst. CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] CMD ["uvicorn", "main:app"]
Dockerfile.frontend +1 −1 Original line number Diff line number Diff line Loading @@ -14,5 +14,5 @@ COPY 02_frontend/ ./ RUN npm run build FROM nginx:stable-alpine COPY --from=build /app/build /usr/share/nginx/html COPY --from=build /app/dist /usr/share/nginx/html COPY 00_nginx/default.conf /etc/nginx/conf.d/default.conf No newline at end of file
docker-compose.yml +2 −11 Original line number Diff line number Diff line services: nginx: image: nginx:latest container_name: nginx ports: - "80:80" volumes: - ./00_nginx/default.conf:/etc/nginx/conf.d/default.conf - ./frontend/dist:/usr/share/nginx/html # statisches Frontend depends_on: - backend backend: build: context: . Loading @@ -28,5 +17,7 @@ services: container_name: frontend # KEIN NGINX hier nötig – nur Build-Zweck # kein ports:, kein volumes: (wird nach Build in nginx gemountet) ports: - "8080:80" depends_on: - backend