Add volume mounts for cache databases

This commit is contained in:
2024-02-29 16:25:49 +08:00
parent a62db38d8b
commit 59dc95d1c7
+3 -3
View File
@@ -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: