Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backend/start_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo "=== Starting Full OrbitMesh Backend Services ==="

# 1. Start Qdrant and PostgreSQL containers
echo "Starting PostgreSQL and Qdrant containers..."
docker compose up -d --build
docker compose up -d --build qdrant postgres adminer

# 2. Wait for PostgreSQL and Qdrant to be ready
echo "Waiting for services to be ready..."
Expand Down
33 changes: 33 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,39 @@ services:
depends_on:
- postgres

backend:
build:
context: .
dockerfile: backend/Dockerfile
image: orbitmesh-backend:local
restart: unless-stopped
ports:
- "${BACKEND_PORT:-8000}:8000"
environment:
- HOST=0.0.0.0
- PORT=8000
- QDRANT_URL=http://qdrant:6333
- DB_BACKEND=postgres
- DATABASE_URL=postgresql://${POSTGRES_USER:-orbitmesh}:${POSTGRES_PASSWORD:-orbitmesh}@postgres:5432/${POSTGRES_DB:-orbitmesh}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
- LLM_MODE=${LLM_MODE:-mock}
depends_on:
postgres:
condition: service_healthy
qdrant:
condition: service_healthy

frontend:
build:
context: ./frontend
dockerfile: Dockerfile
image: orbitmesh-frontend:local
restart: unless-stopped
ports:
- "${FRONTEND_PORT:-80}:80"
depends_on:
- backend

volumes:
qdrant_data:
postgres_data:
4 changes: 3 additions & 1 deletion frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ server {

# Proxy API calls if configured with a backend container
location /api/ {
proxy_pass http://backend:8000/api/;
resolver 127.0.0.11 valid=30s ipv6=off;
set $backend_upstream "http://backend:8000";
proxy_pass $backend_upstream/api/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
Expand Down
Loading