Add Docker networking support for N8N and container integration
- Added docker-compose.api-localai.yml for Docker network integration - Updated config.py to support dynamic Supabase connection strings via environment variables - Enhanced documentation with Docker network deployment instructions - Added specific N8N workflow integration guidance - Solved Docker networking issues for container-to-container communication Key improvements: * Container-to-container API access for N8N workflows * Automatic service dependency resolution (Ollama, Supabase) * Comprehensive deployment options for different use cases * Production-ready Docker network configuration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
31
docker-compose.api-localai.yml
Normal file
31
docker-compose.api-localai.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
mem0-api:
|
||||
build: .
|
||||
container_name: mem0-api-localai
|
||||
networks:
|
||||
- localai
|
||||
ports:
|
||||
- "8080:8080"
|
||||
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
|
||||
- OLLAMA_BASE_URL=http://172.21.0.1:11434
|
||||
- SUPABASE_CONNECTION_STRING=postgresql://supabase_admin:CzkaYmRvc26Y@172.21.0.12:5432/postgres
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
volumes:
|
||||
- ./logs:/app/logs:rw
|
||||
|
||||
networks:
|
||||
localai:
|
||||
external: true
|
||||
Reference in New Issue
Block a user