set correct databse settings with docke-compose

This commit is contained in:
jannisp 2021-04-22 14:49:33 +02:00
parent 874f40d535
commit 0f351f7ac7
2 changed files with 22 additions and 1 deletions

2
.env
View file

@ -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 ###

21
docker-compose.yml Normal file
View file

@ -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]