Use named volume for persistence
This commit is contained in:
parent
b121790b77
commit
61f47320a7
|
@ -3,3 +3,7 @@ services:
|
||||||
image: "postgres:<%= @postgres_version %>"
|
image: "postgres:<%= @postgres_version %>"
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_PASSWORD=<%= @db_secrets['postgres_password'] %>
|
- POSTGRES_PASSWORD=<%= @db_secrets['postgres_password'] %>
|
||||||
|
volumes:
|
||||||
|
- postgres_data:/var/lib/postgresql/data
|
||||||
|
volumes:
|
||||||
|
postgres_data:
|
||||||
|
|
Loading…
Reference in a new issue