🔧 Docker Configuration Updates: - Updated docker-compose.api.yml to use host networking - Added curl to Dockerfile for health checks - Removed unnecessary Neo4j service (already running) - Simplified container configuration for external access ✅ External Access Confirmed: - API accessible on 0.0.0.0:8080 from outside the machine - Health endpoint working: /health - Authenticated endpoints working: /status - All services connected and healthy 📊 Deployment Status: - Docker image built successfully (610MB) - Container running with mem0-api-server name - Host networking enables external connectivity - Ollama and Supabase connections working 🎯 User Issue Resolved: - REST API now accessible from outside the machine - Docker deployment provides production-ready external access - Documentation updated to reflect correct deployment methods 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
563 B
YAML
22 lines
563 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
mem0-api:
|
|
build: .
|
|
container_name: mem0-api-server
|
|
network_mode: host
|
|
environment:
|
|
- API_HOST=0.0.0.0
|
|
- API_PORT=8080
|
|
- API_KEYS=mem0_dev_key_123456789,mem0_docker_key_987654321
|
|
- ADMIN_API_KEYS=mem0_admin_key_111222333
|
|
- RATE_LIMIT_REQUESTS=100
|
|
- RATE_LIMIT_WINDOW_MINUTES=1
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
|
interval: 30s
|
|
timeout: 10s
|
|
retries: 3
|
|
volumes:
|
|
- ./logs:/app/logs:rw |