Docker update for image issue
This commit is contained in:
+12
-4
@@ -22,10 +22,18 @@ services:
|
|||||||
SERVER_FORWARD_HEADERS_STRATEGY: native
|
SERVER_FORWARD_HEADERS_STRATEGY: native
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# Persist uploaded images and files
|
# Persist uploaded images and files.
|
||||||
# NOTE: production profile (application.yml) sets file.upload.directory to
|
# This same named volume is mounted at TWO paths on purpose:
|
||||||
# /var/uploads/blog-images — this mount MUST match that path or uploads
|
# - /app/uploads: hardcoded in FileConstant.java for hero/professor/
|
||||||
# silently write to the container's ephemeral layer and vanish on redeploy.
|
# user avatar images (does NOT read file.upload.directory).
|
||||||
|
# - /var/uploads/blog-images: read from file.upload.directory
|
||||||
|
# (application.yml production profile) for blog post images.
|
||||||
|
# The volume already contains hero/ and user/ subfolders plus the
|
||||||
|
# blog post images at its root from before this was mounted twice —
|
||||||
|
# mounting both paths makes all of it visible again with no data
|
||||||
|
# migration needed. Do not change either path without updating the
|
||||||
|
# other or the corresponding app config.
|
||||||
|
- blog-uploads:/app/uploads
|
||||||
- blog-uploads:/var/uploads/blog-images
|
- blog-uploads:/var/uploads/blog-images
|
||||||
networks:
|
networks:
|
||||||
- angular-spring
|
- angular-spring
|
||||||
|
|||||||
Reference in New Issue
Block a user