persist data for database and pgadmin
This commit is contained in:
parent
6e8e85b025
commit
2d6a4eacd5
2 changed files with 11 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,5 +1,6 @@
|
|||
/public/uploads/*
|
||||
.DS_Store
|
||||
/pgadmin_data
|
||||
|
||||
###> symfony/framework-bundle ###
|
||||
/.env.local
|
||||
|
|
|
@ -7,6 +7,8 @@ services:
|
|||
POSTGRES_PASSWORD: develop
|
||||
ports:
|
||||
- 5432:5432
|
||||
volumes:
|
||||
- postgres-data:/var/lib/postgresql/data
|
||||
|
||||
pgadmin:
|
||||
image: dpage/pgadmin4
|
||||
|
@ -15,7 +17,14 @@ services:
|
|||
PGADMIN_DEFAULT_PASSWORD: root
|
||||
ports:
|
||||
- "8001:80"
|
||||
volumes:
|
||||
- ./pgadmin_data/servers.json:/pgadmin4/servers.json
|
||||
- pgadmin-data:/varl/lib/pgadmin
|
||||
|
||||
mailer:
|
||||
image: schickling/mailcatcher
|
||||
ports: [1025,1080]
|
||||
ports: [1025,1080]
|
||||
|
||||
volumes:
|
||||
postgres-data:
|
||||
pgadmin-data:
|
||||
|
|
Reference in a new issue