persist data for database and pgadmin

This commit is contained in:
Jannis Portmann 2021-04-27 09:52:17 +02:00
parent 6e8e85b025
commit 2d6a4eacd5
2 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
/public/uploads/* /public/uploads/*
.DS_Store .DS_Store
/pgadmin_data
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###
/.env.local /.env.local

View file

@ -7,6 +7,8 @@ services:
POSTGRES_PASSWORD: develop POSTGRES_PASSWORD: develop
ports: ports:
- 5432:5432 - 5432:5432
volumes:
- postgres-data:/var/lib/postgresql/data
pgadmin: pgadmin:
image: dpage/pgadmin4 image: dpage/pgadmin4
@ -15,7 +17,14 @@ services:
PGADMIN_DEFAULT_PASSWORD: root PGADMIN_DEFAULT_PASSWORD: root
ports: ports:
- "8001:80" - "8001:80"
volumes:
- ./pgadmin_data/servers.json:/pgadmin4/servers.json
- pgadmin-data:/varl/lib/pgadmin
mailer: mailer:
image: schickling/mailcatcher image: schickling/mailcatcher
ports: [1025,1080] ports: [1025,1080]
volumes:
postgres-data:
pgadmin-data: