Open spusuf opened 3 months ago
"./backend" should be mapped to "/app" in the container. It was for backward compatibility.
I have the same problem. Like a work arodun I had to download the github manually and run with portainer.
I tried this but then see these warning...
?: (staticfiles.W004) The directory '/app/../frontend/builds' in the STATICFILES_DIRS setting does not exist.
?: (staticfiles.W004) The directory '/app/../frontend/static' in the STATICFILES_DIRS setting does not exist.
and this error...
ValueError: Missing staticfiles manifest entry for 'vendor/css/sweetalert2.min.css'
When the image or git is pulled then started using
docker compose up -d
the server starts as expected, but using Portainer to launch results in obico-web logs showing:And obico-tasks logs show:
However changing the backend volume in
docker-compose.yml
from- ./backend:/app
to:- ./backend:/backend
worksAdding the line
-./backend:/app
does not work.Is there a reason why the frontend volume points to the frontend directory, but backend points to a directory that doesn't exist in the root folder? Again this is only an issue in Portainer but the fix works for docker compose.
Just want to get a little bit of insight as to why it's set up this way and what I need to fix in a PR to get working on both platforms.