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:
parent
b8b27cef21
commit
3d6bd5e5a6
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue