fix: use network_mode host for container networking

ABP framework requires access to host network for DB/Redis connections
This commit is contained in:
向宁 2026-05-17 19:42:53 +08:00
parent 855a7b6880
commit 819eac0edc

4
Jenkinsfile vendored
View File

@ -54,9 +54,7 @@ services:
rag-backend: rag-backend:
image: ${CI_REGISTRY}/${DOCKER_IMAGE}:latest image: ${CI_REGISTRY}/${DOCKER_IMAGE}:latest
container_name: rag-backend container_name: rag-backend
ports: network_mode: host
- "5211:5211"
- "50051:50051"
restart: unless-stopped restart: unless-stopped
environment: environment:
- ASPNETCORE_ENVIRONMENT=Production - ASPNETCORE_ENVIRONMENT=Production