rebase
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
db:
|
||||
image: postgres:15-alpine
|
||||
@@ -39,8 +37,13 @@ services:
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
# Override .env values with docker-compose service names
|
||||
DATABASE_URL: postgresql+asyncpg://${POSTGRES_USER:-airpg}:${POSTGRES_PASSWORD:-airpg}@db:5432/${POSTGRES_DB:-airpg}
|
||||
QDRANT_URL: http://qdrant:6333
|
||||
# Allow backend to reach host services (e.g. Ollama on host) via host.docker.internal
|
||||
# On Linux this requires the extra_hosts mapping below.
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
- ./app:/app/app
|
||||
@@ -53,13 +56,18 @@ services:
|
||||
condition: service_healthy
|
||||
|
||||
frontend:
|
||||
# nginx-served production build of the React app.
|
||||
# Listens on container port 80, mapped to host port 8080.
|
||||
# Access the app at http://localhost:8080
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: ../deploy/Dockerfile.frontend
|
||||
environment:
|
||||
VITE_API_BASE_URL: /api
|
||||
context: .
|
||||
dockerfile: deploy/Dockerfile.frontend
|
||||
args:
|
||||
# Bake the API base URL into the bundle at build time.
|
||||
# Relative "/api" works because nginx proxies /api/* → backend:8000.
|
||||
VITE_API_BASE_URL: /api
|
||||
ports:
|
||||
- "5173:5173"
|
||||
- "8080:80"
|
||||
depends_on:
|
||||
- backend
|
||||
|
||||
|
||||
Reference in New Issue
Block a user