Files
MemoryBear/api/docker-compose.yml
2026-01-19 17:52:04 +08:00

41 lines
937 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
# FastAPI application
api:
image: redbear-mem-open:latest
container_name: api
ports:
- "8002:8000"
env_file:
- .env
environment:
- SERVER_IP=0.0.0.0
# 如果代码里必须要 MCP_SERVER_URL可以先注释或指向占位
# - MCP_SERVER_URL=
volumes:
- ./files:/files
- /etc/localtime:/etc/localtime:ro
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload --log-level debug
restart: unless-stopped
networks:
- default
- celery
# Celery worker
worker:
image: redbear-mem-open:latest
container_name: worker
env_file:
- .env
environment:
# - MCP_SERVER_URL=
volumes:
- ./files:/files
- /etc/localtime:/etc/localtime:ro
command: celery -A app.celery_worker.celery_app worker --loglevel=info
restart: unless-stopped
networks:
- celery
networks:
celery: