ai-station/docker-compose.yml

66 lines
1.5 KiB
YAML

version: '3.8'
services:
chainlit-app:
build: .
container_name: ai-station-app
ports:
- "8000:8000"
env_file:
- .env
environment:
- DATABASE_URL=postgresql+asyncpg://ai_user:secure_password_here@postgres:5432/ai_station
- OLLAMA_URL=http://192.168.1.243:11434
- QDRANT_URL=http://qdrant:6333
- BGE_API_URL=http://192.168.1.243:8001
volumes:
- ./workspaces:/app/workspaces
- ./public:/app/public # ⬅️ VERIFICA QUESTO
- ./.files:/app/.files
- ./.chainlit:/app/.chainlit # ⬅️ AGGIUNGI QUESTO
networks:
- ai-station-net
depends_on:
postgres:
condition: service_healthy
qdrant:
condition: service_started
restart: unless-stopped
postgres:
image: postgres:15-alpine
container_name: ai-station-postgres
environment:
- POSTGRES_USER=ai_user
- POSTGRES_PASSWORD=secure_password_here
- POSTGRES_DB=ai_station
volumes:
- postgres_data_v2:/var/lib/postgresql/data
networks:
- ai-station-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ai_user -d ai_station"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
qdrant:
image: qdrant/qdrant:latest
container_name: ai-station-qdrant
ports:
- "6333:6333"
volumes:
- qdrant_data:/qdrant/storage
networks:
- ai-station-net
restart: unless-stopped
networks:
ai-station-net:
driver: bridge
volumes:
postgres_data_v2:
qdrant_data: