diff --git a/Dockerfile b/Dockerfile index cf38e93d..87d3ef7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ WORKDIR /app RUN apt-get update && apt-get install -y \ gcc \ g++ \ + curl \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install Python dependencies diff --git a/docker-compose.api.yml b/docker-compose.api.yml index 5cffc078..43e10dc8 100644 --- a/docker-compose.api.yml +++ b/docker-compose.api.yml @@ -4,8 +4,7 @@ services: mem0-api: build: . container_name: mem0-api-server - ports: - - "8080:8080" + network_mode: host environment: - API_HOST=0.0.0.0 - API_PORT=8080 @@ -13,41 +12,11 @@ services: - ADMIN_API_KEYS=mem0_admin_key_111222333 - RATE_LIMIT_REQUESTS=100 - RATE_LIMIT_WINDOW_MINUTES=1 - networks: - - mem0-network restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/health"] interval: 30s timeout: 10s retries: 3 - depends_on: - - neo4j volumes: - - ./logs:/app/logs:rw - - neo4j: - image: neo4j:5.23 - container_name: mem0-neo4j-api - ports: - - "7474:7474" - - "7687:7687" - environment: - - NEO4J_AUTH=neo4j/password123 - - NEO4J_PLUGINS=["apoc"] - - NEO4J_dbms_security_procedures_unrestricted=apoc.* - volumes: - - neo4j_data:/data - - neo4j_logs:/logs - networks: - - mem0-network - restart: unless-stopped - -networks: - mem0-network: - driver: bridge - external: false - -volumes: - neo4j_data: - neo4j_logs: \ No newline at end of file + - ./logs:/app/logs:rw \ No newline at end of file