Merge pull request #55 from PabloCastellano/master

Use docker volumes for postgres database
This commit is contained in:
Markus Opolka
2021-04-04 07:26:02 +02:00
committed by GitHub
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:

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: