Files
discord-fishbowl/docker-compose.yml
matt 004f0325ec Fix comprehensive system issues and implement proper vector database backend selection
- Fix reflection memory spam despite zero active characters in scheduler.py
- Add character enable/disable functionality to admin interface
- Fix Docker configuration with proper network setup and service dependencies
- Resolve admin interface JavaScript errors and login issues
- Fix MCP import paths for updated package structure
- Add comprehensive character management with audit logging
- Implement proper character state management and persistence
- Fix database connectivity and initialization issues
- Add missing audit service for admin operations
- Complete Docker stack integration with all required services

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-06 19:54:49 -07:00

169 lines
4.4 KiB
YAML

services:
postgres:
image: postgres:15
environment:
POSTGRES_DB: discord_fishbowl
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ${DB_PASSWORD:-fishbowl_password}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "15432:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 30s
timeout: 10s
retries: 3
networks:
- fishbowl-network
redis:
image: redis:7-alpine
command: redis-server --requirepass ${REDIS_PASSWORD:-redis_password}
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
- fishbowl-network
# ChromaDB for vector storage
chromadb:
image: chromadb/chroma:latest
ports:
- "8001:8000"
volumes:
- chroma_data:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
restart: unless-stopped
networks:
- fishbowl-network
profiles:
- chromadb
# Qdrant for vector storage (default vector database)
qdrant:
image: qdrant/qdrant:latest
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
environment:
- QDRANT__SERVICE__HTTP_PORT=6333
- QDRANT__SERVICE__GRPC_PORT=6334
- QDRANT__SERVICE__HOST=0.0.0.0
restart: unless-stopped
networks:
- fishbowl-network
fishbowl:
build: .
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_started
environment:
# Database configuration
DATABASE_URL: postgresql+asyncpg://postgres:${DB_PASSWORD:-fishbowl_password}@postgres:5432/discord_fishbowl
DB_HOST: postgres
DB_PORT: 5432
DB_PASSWORD: ${DB_PASSWORD:-fishbowl_password}
DB_NAME: discord_fishbowl
DB_USER: postgres
# Redis configuration
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis_password}
# Discord configuration
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
DISCORD_GUILD_ID: "${DISCORD_GUILD_ID}"
DISCORD_CHANNEL_ID: "${DISCORD_CHANNEL_ID}"
# LLM configuration (external service, use host IP)
LLM_BASE_URL: ${LLM_BASE_URL:-http://192.168.1.200:5005/v1}
LLM_MODEL: ${LLM_MODEL:-koboldcpp/Broken-Tutu-24B-Transgression-v2.0.i1-Q4_K_M}
# Vector database configuration
VECTOR_DB_TYPE: ${VECTOR_DB_TYPE:-qdrant}
QDRANT_HOST: qdrant
QDRANT_PORT: 6333
# Application configuration
LOG_LEVEL: ${LOG_LEVEL:-INFO}
ENVIRONMENT: production
volumes:
- ./logs:/app/logs
- ./config:/app/config
- ./data:/app/data
restart: unless-stopped
networks:
- fishbowl-network
fishbowl-admin:
build:
context: .
dockerfile: Dockerfile.admin
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
environment:
# Database configuration
DATABASE_URL: postgresql+asyncpg://postgres:${DB_PASSWORD:-fishbowl_password}@postgres:5432/discord_fishbowl
DB_HOST: postgres
DB_PORT: 5432
DB_PASSWORD: ${DB_PASSWORD:-fishbowl_password}
# Redis configuration
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: ${REDIS_PASSWORD:-redis_password}
# Discord configuration
DISCORD_BOT_TOKEN: ${DISCORD_BOT_TOKEN}
DISCORD_GUILD_ID: "${DISCORD_GUILD_ID}"
DISCORD_CHANNEL_ID: "${DISCORD_CHANNEL_ID}"
# LLM configuration
LLM_BASE_URL: ${LLM_BASE_URL:-http://192.168.1.200:5005/v1}
LLM_MODEL: ${LLM_MODEL:-koboldcpp/Broken-Tutu-24B-Transgression-v2.0.i1-Q4_K_M}
# Admin interface configuration
ADMIN_HOST: 0.0.0.0
ADMIN_PORT: ${ADMIN_PORT}
SECRET_KEY: ${SECRET_KEY}
ADMIN_USERNAME: ${ADMIN_USERNAME}
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
ports:
- "${ADMIN_PORT}:${ADMIN_PORT}"
volumes:
- ./logs:/app/logs
- ./config:/app/config
restart: unless-stopped
networks:
- fishbowl-network
volumes:
postgres_data:
redis_data:
chroma_data:
qdrant_data:
networks:
fishbowl-network:
driver: bridge