From fe576cc74036faf5982184fd935986305ae7ce5b Mon Sep 17 00:00:00 2001 From: "a.shamavov" Date: Fri, 26 Apr 2024 12:01:26 +0500 Subject: [PATCH] =?UTF-8?q?STA-965=20|=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20.env=20=D0=B2=20.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 ++ .gitignore | 4 +++- docker-compose.yaml | 6 ++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 0a0d6c5..988a069 100644 --- a/.env +++ b/.env @@ -42,3 +42,5 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0 DATABASE_PORT="5432" NGINX_PORT="80" APP_BASE_DIR="./" +POSTGRES_USER="postgres" +POSTGRES_PASSWORD="12345" \ No newline at end of file diff --git a/.gitignore b/.gitignore index 930e1e2..f8810d3 100644 --- a/.gitignore +++ b/.gitignore @@ -23,4 +23,6 @@ /public/assets/ /assets/vendor/ ###< symfony/asset-mapper ### -/.idea \ No newline at end of file +/.idea +.env +.env.test \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 9a33442..b41d486 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -5,8 +5,8 @@ services: container_name: postgres image: postgres:16.2-alpine environment: - POSTGRES_USER: postgres - POSTGRES_PASSWORD: 12345 + POSTGRES_USER: ${POSTGRES_USER} + POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_HOST_AUTH_METHOD: trust ports: - "${DATABASE_PORT}:${DATABASE_PORT}" @@ -33,8 +33,6 @@ services: APP_BASE_DIR: ${APP_BASE_DIR-.} volumes: - ".:/app" - ports: - - "9000:9000" restart: unless-stopped networks: - internal -- GitLab