Use named volume for persistence

This commit is contained in:
Patrik Lundin 2024-11-13 13:52:26 +01:00
parent b121790b77
commit 61f47320a7
Signed by: patlu
GPG key ID: A0A812BA2249F294

View file

@ -3,3 +3,7 @@ services:
image: "postgres:<%= @postgres_version %>"
environment:
- POSTGRES_PASSWORD=<%= @db_secrets['postgres_password'] %>
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data: