docker-compose.dev.ymlโข2.76 kB
version: '3.8'
services:
anydocs-mcp-dev:
build:
context: .
dockerfile: Dockerfile.dev
container_name: anydocs-mcp-dev
restart: unless-stopped
ports:
- "8000:8000" # Web interface
- "8001:8001" # MCP server
- "5678:5678" # Debug port
environment:
- ENVIRONMENT=development
- DATABASE_URL=sqlite:///data/anydocs_dev.db
- REDIS_URL=redis://redis-dev:6379/0
- LOG_LEVEL=DEBUG
- PYTHONPATH=/app/src
volumes:
- .:/app
- ./data:/app/data
- ./logs:/app/logs
env_file:
- .env
depends_on:
- redis-dev
networks:
- anydocs-dev-network
command: >
sh -c "uv install --dev &&
python start.py --mode hybrid --debug"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 60s
timeout: 10s
retries: 3
start_period: 60s
redis-dev:
image: redis:7-alpine
container_name: anydocs-redis-dev
restart: unless-stopped
ports:
- "6380:6379"
volumes:
- redis_dev_data:/data
networks:
- anydocs-dev-network
command: redis-server --appendonly yes
# Optional: PostgreSQL for development
postgres-dev:
image: postgres:15-alpine
container_name: anydocs-postgres-dev
restart: unless-stopped
ports:
- "5433:5432"
environment:
- POSTGRES_DB=anydocs_dev
- POSTGRES_USER=anydocs_dev
- POSTGRES_PASSWORD=dev123
volumes:
- postgres_dev_data:/var/lib/postgresql/data
networks:
- anydocs-dev-network
profiles:
- postgres
# Optional: Mailhog for email testing
mailhog:
image: mailhog/mailhog:latest
container_name: anydocs-mailhog
restart: unless-stopped
ports:
- "1025:1025" # SMTP
- "8025:8025" # Web UI
networks:
- anydocs-dev-network
profiles:
- mail
# Optional: MinIO for S3-compatible storage testing
minio:
image: minio/minio:latest
container_name: anydocs-minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
- MINIO_ROOT_USER=minioadmin
- MINIO_ROOT_PASSWORD=minioadmin123
volumes:
- minio_data:/data
networks:
- anydocs-dev-network
profiles:
- storage
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
volumes:
redis_dev_data:
driver: local
postgres_dev_data:
driver: local
minio_data:
driver: local
networks:
anydocs-dev-network:
driver: bridge
ipam:
config:
- subnet: 172.21.0.0/16