From f208fbbfd58c7866b520175a05131bae38f10ce6 Mon Sep 17 00:00:00 2001 From: J-E Castagnede Date: Thu, 16 Nov 2023 16:41:10 +0100 Subject: [PATCH] fix docker postgres dev mode with another port --- .env-dev.dist | 2 +- docker-compose-dev.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env-dev.dist b/.env-dev.dist index 9beb328aed..9687261d41 100644 --- a/.env-dev.dist +++ b/.env-dev.dist @@ -1,7 +1,7 @@ ENV=dev SERVER_NAME=geotrek.localhost +POSTGRES_LOCAL_PORT=5432 POSTGRES_HOST=postgres -POSTGRES_PORT=5432 POSTGRES_USER=geotrek POSTGRES_PASSWORD=geotrek POSTGRES_DB=geotrekdb diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index eef6598583..8b275b10dc 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -5,7 +5,7 @@ services: env_file: - .env ports: - - "${POSTGRES_PORT:-5432}:5432" + - "${POSTGRES_LOCAL_PORT:-5432}:5432" volumes: - postgres:/var/lib/postgresql/data