diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..76a6956 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,30 @@ +version: '3.8' +services: + backend: + build: + context: ./backend + dockerfile: Dockerfile + ports: + - "8000:8000" + environment: + - USER_LLM_API_KEY=${USER_LLM_API_KEY:-} + volumes: + - ./backend:/app + - /app/.venv + command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload + + frontend: + build: + context: ./frontend + dockerfile: Dockerfile + ports: + - "3000:3000" + environment: + - NEXT_PUBLIC_API_URL=http://localhost:8000 + volumes: + - ./frontend:/app + - /app/node_modules + - /app/.next + command: npm run dev + depends_on: + - backend