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:
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user