From bb8eebe2f90a342378a400b17962e77d2949ea70 Mon Sep 17 00:00:00 2001 From: Michael Glanznig Date: Fri, 11 May 2018 12:18:28 +0200 Subject: [PATCH] enable access to the postgresql database from the host and restrict port sharing to localhost only (#3208) --- docker-compose.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 960059414f..0ebe675817 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,7 @@ services: depends_on: - db ports: - - "6789:6789" + - "127.0.0.1:6789:6789" environment: - PGHOST=db - PGUSER=postgres @@ -19,6 +19,8 @@ services: build: context: . dockerfile: Dockerfile.db + ports: + - "127.0.0.1:5432:5432" environment: - PG_WORK_MEM - PG_MAINTENANCE_WORK_MEM