From 547b8e727fa6d6ab8a8390ac908a6205ed59782d Mon Sep 17 00:00:00 2001 From: Christian Chwala Date: Wed, 21 Oct 2026 17:20:06 +0200 Subject: [PATCH] Bind Postgres port to loopback only --- README.md | 2 +- docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b273679..426aa1f 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ The webserver provides an intuitive interface with four main pages: - **Webserver (Main UI)**: http://localhost:5000 - **Grafana Dashboards**: http://localhost:3000 - - **Database**: localhost:5432 + - **Database**: localhost:5432 (bound to the loopback interface only; not reachable from other hosts) - **SFTP Server**: localhost:2222 *Note: The processor service (port 5002) is currently a minimal stub implementation.* diff --git a/docker-compose.yml b/docker-compose.yml index 097e236..be3f2e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -116,7 +116,7 @@ services: database: build: ./database ports: - - "5432:5432" + - "127.0.0.1:5432:5432" # Tune PostgreSQL memory for an 8 GB VM. # shared_buffers: keep recently-used chunks in RAM (default is only 128 MB). # effective_cache_size: hints to the planner how much OS page cache is available.