From 59dc95d1c7571c04227589087314a9cbc44c6a13 Mon Sep 17 00:00:00 2001 From: Teck Meng Date: Thu, 29 Feb 2024 16:25:49 +0800 Subject: [PATCH] Add volume mounts for cache databases --- production.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/production.yml b/production.yml index 0070c3e..5653090 100644 --- a/production.yml +++ b/production.yml @@ -46,6 +46,9 @@ services: networks: - net - default + volumes: + - ${PWD}/cache/bar_cache.sqlite:/app/bar_cache.sqlite + - ${PWD}/cache/short_cache.sqlite:/app/short_cache.sqlite streamlit-fin: environment: @@ -56,9 +59,6 @@ services: image: streamlit_fin_production container_name: streamlit_fin_app restart: always - volumes: - - ${PWD}/cache/bar_cache.sqlite:/app/bar_cache.sqlite - - ${PWD}/cache/short_cache.sqlite:/app/short_cache.sqlite expose: - ${STREAMLIT_FIN_SERVER_PORT} networks: