ai-station/docker-compose.yml

64 lines
1.5 KiB
YAML
Raw Normal View History

2025-12-25 14:54:33 +00:00
services:
2025-12-29 05:50:06 +00:00
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
2026-01-01 16:33:39 +00:00
- BGE_API_URL=http://192.168.1.243:8001/embed
2025-12-29 05:50:06 +00:00
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
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-29 05:50:06 +00:00
- POSTGRES_USER=ai_user
- POSTGRES_PASSWORD=secure_password_here
- POSTGRES_DB=ai_station
2025-12-25 14:54:33 +00:00
volumes:
- postgres_data_v2:/var/lib/postgresql/data
2025-12-25 14:54:33 +00:00
networks:
- ai-station-net
2025-12-26 16:48:51 +00:00
healthcheck:
2025-12-29 05:50:06 +00:00
test: ["CMD-SHELL", "pg_isready -U ai_user -d ai_station"]
interval: 5s
2025-12-26 16:48:51 +00:00
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
2025-12-25 14:54:33 +00:00
ports:
- "6333:6333"
volumes:
2025-12-29 05:50:06 +00:00
- qdrant_data:/qdrant/storage
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
networks:
ai-station-net:
2025-12-26 16:48:51 +00:00
driver: bridge
2025-12-29 05:50:06 +00:00
volumes:
postgres_data_v2:
2025-12-29 05:50:06 +00:00
qdrant_data: