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