Use docker volumes for postgres database

This commit is contained in:
Pablo Castellano
2021-04-03 11:26:30 +02:00
parent fceae6b3cd
commit 1360fb8001
2 changed files with 9 additions and 1 deletions

View File

@@ -20,7 +20,12 @@ services:
- "ADMIN_PASSWORD=foobar"
lime-db:
image: postgres:10
volumes:
- db-data:/var/lib/postgresql
environment:
- "POSTGRES_USER=limesurvey"
- "POSTGRES_DB=limesurvey"
- "POSTGRES_PASSWORD=secret"
volumes:
db-data: