chore(docker): migrate static and media to managed, update comments
All checks were successful
CVE Scan & Docker Build / security-scan (push) Successful in 1m11s
CVE Scan & Docker Build / build-and-push (push) Successful in 48s

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.
This commit is contained in:
2026-05-16 19:00:16 -04:00
parent 2a45cb2622
commit 4fb3676204

View File

@@ -386,19 +386,9 @@ services:
volumes: volumes:
# Static files written by collectstatic (run by the init sidecar on every # Static files written by collectstatic (run by the init sidecar on every
# `up`). Bind-mounted from the host so nginx can serve them directly. # `up`). Docker-managed volume — no host path needed; storage is minimal
# The host path is created by Ansible before `docker compose up`. # and auto-regenerated on every `up`.
static: static:
driver: local # Media files. Production uses USE_LOCAL_STORAGE=False (S3) so this volume
driver_opts: # is effectively unused — kept so the mount points in services don't break.
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: media:
driver: local
driver_opts:
type: none
device: ${MEDIA_ROOT}
o: bind