Please fill in the questionnaire below.
Technical Help Questionnaire
Have you read and followed the instructions at: *READ ME FIRST* Technical Help FAQs - #2 by nigel ?
Answer: Yes
Hi, I tried to install the project with docker through the docker tutorial and it works just fine. I am able to navigate on the frontend and everything runs smooth.
Now, my question is regarding being able to work on the code.
I’d like to have the project source code that is inside the container mounted into my computer, so whenever I make a change in a file, it will reflect on the docker image as well.
So the first command in the quick start
docker run \
-d \
--name baserow \
-e BASEROW_PUBLIC_URL=http://localhost \
-v baserow_data:/baserow/data \
-p 80:80 \
-p 443:443 \
--restart unless-stopped \
baserow/baserow:1.17.0
I see baserow/data folder being mounted to my computer, so I tried to change that to
-v baserow_src:/baserow \
so I could see the entire codebase
That mounted baserow_src but it’s empty with an error occuring when trying to run the container:
/baserow.sh: line 106: /baserow/supervisor/default_baserow_env.sh: No such file or directory
I see on line 116 of the baserow.sh that probably the error is caused by not having the data folder mounted, so I tried to mount both:
docker run \
-d \
--name baserow \
-e BASEROW_PUBLIC_URL=http://localhost \
-v baserow_data:/baserow/data -v baserow_src:/baserow/ \
-p 80:80 \
-p 443:443 \
--restart unless-stopped \
baserow/baserow:1.17.0
but that did not work either.
I’m not super expert with Docker, but have used it before and usually this is the way I’d go for working on a project: make the source code from the container mount in my computer, so I can use my IDE to visualize the project. How can I achieve this here?
I’m probably missing something very basic here, so sorry if it’s a stupid question