From afa5707fe366e42251d57f492ed26f8f0a8a9a53 Mon Sep 17 00:00:00 2001 From: Ndibe Raymond Olisaemeka Date: Fri, 29 Dec 2023 02:46:23 +0000 Subject: [PATCH] persist media_data in prod (#1065) Signed-off-by: Ndibe Raymond Olisaemeka Co-authored-by: Ndibe Raymond Olisaemeka --- zubhub_backend/docker-compose.prod.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zubhub_backend/docker-compose.prod.yml b/zubhub_backend/docker-compose.prod.yml index f1e0dad2c..12d661f1e 100644 --- a/zubhub_backend/docker-compose.prod.yml +++ b/zubhub_backend/docker-compose.prod.yml @@ -26,6 +26,10 @@ services: max_replicas_per_node: 1 constraints: - "node.role==worker" + volumes: + # We don't plan to ever use this in prod since we use external media storage services. + # This is just precautionary. + - media_data:/home/media/media_store environment: - SECRET_NAME=zubhub_services_secrets secrets: @@ -117,3 +121,4 @@ secrets: volumes: ssl_data: + media_data: