Commit 09b170b8 authored by Kantz's avatar Kantz
Browse files

compose an main angepasst

parent 25e17ca2
services:
nginx:
image: nginx:1.27-alpine
depends_on:
- backend
- frontend
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
- frontend-dist:/usr/share/nginx/html:ro
restart: unless-stopped
backend:
build:
context: ../backend
dockerfile: Dockerfile
env_file:
- ../backend/.env
- ../backend/.env_openai
expose:
- "8000"
healthcheck:
......@@ -34,6 +22,8 @@ services:
restart: unless-stopped
volumes:
- ./logs:/app/logs
networks:
- web
frontend:
build:
......@@ -41,9 +31,10 @@ services:
dockerfile: Dockerfile
depends_on:
- backend
volumes:
- frontend-dist:/dist
restart: unless-stopped
networks:
- web
volumes:
frontend-dist:
networks:
web:
external: true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment