From 61f47320a7cdfba06473f64b86251d06de0184e5 Mon Sep 17 00:00:00 2001 From: Patrik Lundin Date: Wed, 13 Nov 2024 13:52:26 +0100 Subject: [PATCH] Use named volume for persistence --- .../puppet/modules/cdn/templates/db/docker-compose.yml.erb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/global/overlay/etc/puppet/modules/cdn/templates/db/docker-compose.yml.erb b/global/overlay/etc/puppet/modules/cdn/templates/db/docker-compose.yml.erb index 58e52b4..47d5bc0 100644 --- a/global/overlay/etc/puppet/modules/cdn/templates/db/docker-compose.yml.erb +++ b/global/overlay/etc/puppet/modules/cdn/templates/db/docker-compose.yml.erb @@ -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: