From 0f351f7ac7fb91bf4bf25aa2ab35c647b8da676d Mon Sep 17 00:00:00 2001 From: jannisp Date: Thu, 22 Apr 2021 14:49:33 +0200 Subject: [PATCH] set correct databse settings with docke-compose --- .env | 2 +- docker-compose.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 docker-compose.yml diff --git a/.env b/.env index 55b595c..8f9106b 100644 --- a/.env +++ b/.env @@ -24,5 +24,5 @@ APP_SECRET=8a390490e448f181dd8d3e6bd38efe6a # # DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db" # DATABASE_URL="mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7" -DATABASE_URL="postgresql://postgres:postgres@127.0.0.1:5432/plantex?serverVersion=13&charset=utf8" +DATABASE_URL="postgresql://postgres:develop@127.0.0.1:5432/plantex?serverVersion=13&charset=utf8" ###< doctrine/doctrine-bundle ### diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..3e725ef --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: '3' + +services: + db: + image: postgres:latest + environment: + POSTGRES_PASSWORD: develop + ports: + - 5432:5432 + + pgadmin: + image: dpage/pgadmin4 + environment: + PGADMIN_DEFAULT_EMAIL: admin@admin.com + PGADMIN_DEFAULT_PASSWORD: root + ports: + - "8001:80" + + mailer: + image: schickling/mailcatcher + ports: [1025,1080] \ No newline at end of file