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
This commit is contained in:
MerCry 2026-03-12 12:59:31 +08:00
parent b8b27cef21
commit 3d6bd5e5a6
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ services:
volumes: volumes:
- postgres_data:/var/lib/postgresql/data - postgres_data:/var/lib/postgresql/data
- ./ai-service/scripts/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql:ro - ./ai-service/scripts/init_db.sql:/docker-entrypoint-initdb.d/init_db.sql:ro
ports:
- "127.0.0.1:5432:5432"
networks: networks:
- ai-network - ai-network
healthcheck: healthcheck: