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: depends_on:
- db - db
db: db:
image: postgres:9.6-alpine image: postgres:10-alpine
restart: always restart: always
volumes:
- db-data:/var/lib/postgresql
environment: environment:
- POSTGRES_USER=limesurvey - POSTGRES_USER=limesurvey
- POSTGRES_DB=limesurvey - POSTGRES_DB=limesurvey
@@ -31,3 +33,4 @@ services:
volumes: volumes:
limesurvey: limesurvey:
db-data:

View File

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