From 854c49d25496b1a089b478d699a1f7bd6cb7bac1 Mon Sep 17 00:00:00 2001 From: Angela Tran Date: Thu, 9 Jan 2025 19:41:40 +0000 Subject: [PATCH] fix: add volume mapping for client service the client container needs DJANGO_STORAGE_DIR to be `/home/calitp/app/data` because the nginx.conf location blocks use that base path to serve media files. the volume mapping is needed so that the container has access to the django.db file and the uploads/ directory from the host side of the mapping. --- compose.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compose.yml b/compose.yml index 88a7e4f73..81f79d7b7 100644 --- a/compose.yml +++ b/compose.yml @@ -9,6 +9,8 @@ services: env_file: .env ports: - "${DJANGO_LOCAL_PORT:-8000}:8000" + volumes: + - ./:/home/calitp/app/data # matches the path in nginx.conf for media files. set your DJANGO_STORAGE_DIR to `/home/calitp/app/data` so the container can access `django.db` and `uploads/`. dev: build: