From 4fb36762042753d0e0aad6f3118db58b3a363ac6 Mon Sep 17 00:00:00 2001 From: Robert Helewka Date: Sat, 16 May 2026 19:00:16 -0400 Subject: [PATCH] chore(docker): migrate static and media to managed, update comments The static volume is now Docker-managed, removing the need for Ansible to create the host path. Media volume comments updated to reflect S3 storage usage (USE_LOCAL_STORAGE=False) and that the volume is effectively unused in production. --- docker-compose.yaml | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 22b1a5d..a8ce3f0 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -386,19 +386,9 @@ services: volumes: # Static files written by collectstatic (run by the init sidecar on every - # `up`). Bind-mounted from the host so nginx can serve them directly. - # The host path is created by Ansible before `docker compose up`. + # `up`). Docker-managed volume — no host path needed; storage is minimal + # and auto-regenerated on every `up`. static: - driver: local - driver_opts: - type: none - device: ${STATIC_ROOT} - o: bind - # Media files. Production uses USE_LOCAL_STORAGE=False so this is mostly - # empty — kept for any path that writes to MEDIA_ROOT directly. + # Media files. Production uses USE_LOCAL_STORAGE=False (S3) so this volume + # is effectively unused — kept so the mount points in services don't break. media: - driver: local - driver_opts: - type: none - device: ${MEDIA_ROOT} - o: bind