ai-station/docker-compose.yml

69 lines
1.6 KiB
YAML

services:
postgres:
image: postgres:15-alpine
container_name: ai-station-postgres
environment:
POSTGRES_DB: ai_station
POSTGRES_USER: ai_user
POSTGRES_PASSWORD: secure_password_here
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- ai-station-net
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ai_user -d ai_station"] # <- AGGIUNGI -d ai_station
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
qdrant:
image: qdrant/qdrant:latest
container_name: ai-station-qdrant
volumes:
- qdrant_data:/qdrant/storage
ports:
- "6333:6333"
- "6334:6334"
networks:
- ai-station-net
restart: unless-stopped
chainlit-app:
build: .
container_name: ai-station-app
ports:
- "8000:8000"
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
- CHAINLIT_AUTH_SECRET=your-secret-key-here
volumes:
- ./workspaces:/app/workspaces
- ./public:/app/public
networks:
- ai-station-net
depends_on:
postgres:
condition: service_healthy
qdrant:
condition: service_started
command: chainlit run app.py --host 0.0.0.0 --port 8000
restart: unless-stopped
volumes:
postgres_data:
driver: local
qdrant_data:
driver: local
networks:
ai-station-net:
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16