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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user