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

@@ -22,8 +22,10 @@ services:
depends_on:
- db
db:
image: postgres:9.6-alpine
image: postgres:10-alpine
restart: always
volumes:
- db-data:/var/lib/postgresql
environment:
- POSTGRES_USER=limesurvey
- POSTGRES_DB=limesurvey
@@ -31,3 +33,4 @@ services:
volumes:
limesurvey:
db-data: