diff --git a/.env b/.env index 416d31f3d1168aea3008ed12b029f987adc98b74..c55fbe35efbe550c13b8623135692b3ef7305fff 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 930e1e21e27cc2916f9dd36aa9e577d0fb0b2ee0..6dd4647f37a5a4fd0c9bc0afd95df6ab550e2f67 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 9a33442b8127522aed09f6787332f788cc19c251..b41d4867e0ae80feed98dfccda6958792a5f3223 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