From 3d6bd5e5a6455b4c19c24581700feec9a10febab Mon Sep 17 00:00:00 2001 From: MerCry Date: Thu, 12 Mar 2026 12:59:31 +0800 Subject: [PATCH] config: add local port binding for PostgreSQL SSH access - Add 127.0.0.1:5432:5432 port mapping to postgres service - Allows Navicat SSH tunnel connection while maintaining security - Only localhost can access the port, external access still blocked --- docker-compose.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 866f048..988d2dc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -60,6 +60,8 @@ services: volumes: - postgres_data:/var/lib/postgresql/data - ./ai-service/scripts/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql:ro + ports: + - "127.0.0.1:5432:5432" networks: - ai-network healthcheck: