From 2fb671fce4106a1b0f25ba252662ce955a6b81a2 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Sat, 15 Oct 2022 22:47:42 +0100 Subject: [PATCH] Make app static root persistent between containers --- docker/docker-compose.prod.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.prod.yml b/docker/docker-compose.prod.yml index 3d518e0..bf8fedb 100644 --- a/docker/docker-compose.prod.yml +++ b/docker/docker-compose.prod.yml @@ -7,6 +7,7 @@ services: volumes: - ${PORTAINER_GIT_DIR}:/code - ${APP_DATABASE_FILE}:/conf/db.sqlite3 + - app_static:${STATIC_ROOT} #ports: # - "8000:8000" # uwsgi socket env_file: @@ -28,6 +29,7 @@ services: volumes: - ${PORTAINER_GIT_DIR}:/code - ${APP_DATABASE_FILE}:/conf/db.sqlite3 + - app_static:${STATIC_ROOT} env_file: - ../stack.env @@ -38,6 +40,7 @@ services: volumes: - ${PORTAINER_GIT_DIR}:/code - ${APP_DATABASE_FILE}:/conf/db.sqlite3 + - app_static:${STATIC_ROOT} env_file: - ../stack.env @@ -96,5 +99,5 @@ networks: external: name: xf -# volumes: -# redis_data: {} +volumes: + app_static: {}