Skip to content
Snippets Groups Projects
Verified Commit 1e772a7d authored by Ole Binder's avatar Ole Binder
Browse files

Fix: create the /app/site_media directory in advance

/app/site_media is mapped to a named volume when deploying with docker compose as part of AURA Playout. Docker creates the directory as root where a named volume should be mapped to if it does not already exist. We therefore create the mount point in advance and set permissions in order to give the aura(app) user access. #184
parent a254d0f7
No related branches found
No related tags found
1 merge request!32Merge: fix /app/site_media permission
Pipeline #7510 passed
......@@ -33,7 +33,13 @@ COPY . .
RUN adduser --home /app --no-create-home --system --uid ${AURA_UID} --group app
RUN mkdir -p /app/logs
# static/admin and site_media are named volumes which we use across multiple
# containers. We therefore create them here and set the permissions right away
# since named volumes otherwise create these directories themself as the root
# user.
RUN mkdir -p /app/static/admin
RUN mkdir -p /app/site_media
# set permissions
RUN chown -R app:app /app
USER app
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment