Browse Source
Fix db-data volume in docker-compose.yml
Use data folder otherwise a second volume is created that becomes orphaned after a docker-compose down.
pull/555/head
Yann Papouin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
docker/docker-compose.yml
|
|
@ -6,7 +6,7 @@ services: |
|
|
|
db: |
|
|
|
image: postgres:12 |
|
|
|
volumes: |
|
|
|
- db-data:/var/lib/postgresql |
|
|
|
- db-data:/var/lib/postgresql/data |
|
|
|
environment: |
|
|
|
- POSTGRES_DB=$DB_NAME |
|
|
|
- POSTGRES_PASSWORD=$DB_PASSWORD |
|
|
|