fix: use npm_network for NPM proxy, expose instead of ports
This commit is contained in:
parent
9e86c30548
commit
a190527076
1 changed files with 14 additions and 5 deletions
|
|
@ -5,6 +5,8 @@ services:
|
|||
container_name: mem0-qdrant
|
||||
expose:
|
||||
- "6333"
|
||||
networks:
|
||||
- mem0_network
|
||||
volumes:
|
||||
- qdrant_data:/qdrant/storage
|
||||
command: >
|
||||
|
|
@ -32,6 +34,8 @@ services:
|
|||
expose:
|
||||
- "7474" # HTTP - Internal only
|
||||
- "7687" # Bolt - Internal only
|
||||
networks:
|
||||
- mem0_network
|
||||
volumes:
|
||||
- neo4j_data:/data
|
||||
- neo4j_logs:/logs
|
||||
|
|
@ -68,8 +72,11 @@ services:
|
|||
OLLAMA_BASE_URL: ${OLLAMA_BASE_URL:-http://host.docker.internal:11434}
|
||||
EMBEDDING_MODEL: ${EMBEDDING_MODEL:-nomic-embed-text}
|
||||
EMBEDDING_DIMS: ${EMBEDDING_DIMS:-768}
|
||||
ports:
|
||||
- "${BACKEND_PORT:-8000}:8000"
|
||||
expose:
|
||||
- "8000"
|
||||
networks:
|
||||
- npm_network
|
||||
- mem0_network
|
||||
depends_on:
|
||||
qdrant:
|
||||
condition: service_healthy
|
||||
|
|
@ -78,7 +85,8 @@ services:
|
|||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./backend:/app
|
||||
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||
- ./frontend:/app/frontend
|
||||
command: ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]
|
||||
|
||||
volumes:
|
||||
qdrant_data:
|
||||
|
|
@ -88,5 +96,6 @@ volumes:
|
|||
neo4j_plugins:
|
||||
|
||||
networks:
|
||||
default:
|
||||
name: mem0-network
|
||||
mem0_network:
|
||||
npm_network:
|
||||
external: true
|
||||
|
|
|
|||
Loading…
Reference in a new issue