You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not a developer, but from what I gather in our Dockerfile on GitHub, it does not appear that the docker-compose.yml file supports setting up COLLECTION_DIRS at this time. This may be possible with some modification on our end.
While the SERVER_NAME, SERVER_PORT, ATTACHMENT_KEY, and DEBUG_MODE environmental variables are entered, there is no support in our current docker deployment method for the user to submit the collection directories through the compose file.
The RUN command could likely be modified to passthrough the you are setting in the compose file, but it is currently structured as it needs to be stored in the settings.py file rather than the environmental variable format the docker-compose.yml and Dockerfile are set up to expect.
Requested By: Fedor at NHMD
The text was updated successfully, but these errors were encountered:
I remember that Ben was hesitant to add complex props (like arrays and dictionaries) as env variables.
Instead, it might be better to provide those as a mounted python config file
I don't know if we should support very complicated props like that even in the first place, given that docker allows mounting files. So, if someone wants, they can just mount an entire settings.py file. Given that the workaround is pretty simple, and doesn't even require a separate docker image, I don't think it is worth the dev time.
Source: Speciforum
I am not a developer, but from what I gather in our
Dockerfile
on GitHub, it does not appear that thedocker-compose.yml
file supports setting upCOLLECTION_DIRS
at this time. This may be possible with some modification on our end.See these lines in the Dockerfile:
web-asset-server/Dockerfile
Lines 28 to 35 in ae6c660
While the
SERVER_NAME
,SERVER_PORT
,ATTACHMENT_KEY
, andDEBUG_MODE
environmental variables are entered, there is no support in our current docker deployment method for the user to submit the collection directories through the compose file.The
RUN
command could likely be modified to passthrough the you are setting in the compose file, but it is currently structured as it needs to be stored in thesettings.py
file rather than the environmental variable format thedocker-compose.yml
andDockerfile
are set up to expect.Requested By: Fedor at NHMD
The text was updated successfully, but these errors were encountered: