From 6d4662a1cbcba6d0beb47d358da0d4d752ca6f43 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Thu, 5 Mar 2020 21:00:20 +0200 Subject: [PATCH] Add Django volumes to hidden directory on static file server --- stack-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stack-compose.yml b/stack-compose.yml index 035cc81..2a50f87 100644 --- a/stack-compose.yml +++ b/stack-compose.yml @@ -43,8 +43,15 @@ services: - 8000:8000 volumes: - type: bind - source: /home/sik/production/files/django_media + source: /home/sik/production/files/static/.hidden/django/media target: /app/media + - type: bind + source: /home/sik/production/files/static/.hidden/django/static + target: /app/static + - type: bind + source: /home/sik/production/files/static/.hidden/django/collected_static + target: /app/collected_static + environment: - SECRET_KEY_FILE=/run/secrets/DJANGO_SECRET_KEY - TG_BOT_TOKEN_FILE=/run/secrets/DJANGO_TG_BOT_TOKEN