ai-station/docker-compose.yml

69 lines
1.6 KiB
YAML
Raw Normal View History

2025-12-25 14:54:33 +00:00
services:
2025-12-26 16:48:51 +00:00
postgres:
image: postgres:15-alpine
container_name: ai-station-postgres
2025-12-25 14:54:33 +00:00
environment:
2025-12-26 16:48:51 +00:00
POSTGRES_DB: ai_station
POSTGRES_USER: ai_user
POSTGRES_PASSWORD: secure_password_here
2025-12-25 14:54:33 +00:00
volumes:
2025-12-26 16:48:51 +00:00
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
2025-12-25 14:54:33 +00:00
networks:
- ai-station-net
2025-12-26 16:48:51 +00:00
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
2025-12-25 14:54:33 +00:00
qdrant:
2025-12-26 09:11:06 +00:00
image: qdrant/qdrant:latest
2025-12-26 16:48:51 +00:00
container_name: ai-station-qdrant
volumes:
- qdrant_data:/qdrant/storage
2025-12-25 14:54:33 +00:00
ports:
- "6333:6333"
2025-12-26 16:48:51 +00:00
- "6334:6334"
2025-12-25 14:54:33 +00:00
networks:
- ai-station-net
2025-12-26 16:48:51 +00:00
restart: unless-stopped
2025-12-25 14:54:33 +00:00
2025-12-26 16:48:51 +00:00
chainlit-app:
build: .
container_name: ai-station-app
2025-12-25 14:54:33 +00:00
ports:
2025-12-26 16:48:51 +00:00
- "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
2025-12-25 14:54:33 +00:00
volumes:
2025-12-26 16:48:51 +00:00
- ./workspaces:/app/workspaces
- ./public:/app/public
2025-12-25 14:54:33 +00:00
networks:
- ai-station-net
2025-12-26 16:48:51 +00:00
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
2025-12-25 14:54:33 +00:00
volumes:
2025-12-26 16:48:51 +00:00
postgres_data:
driver: local
qdrant_data:
driver: local
2025-12-25 14:54:33 +00:00
networks:
ai-station-net:
2025-12-26 16:48:51 +00:00
driver: bridge
ipam:
config:
- subnet: 172.28.0.0/16