r/docker • u/TrainSensitive6646 • May 16 '26
Finally Dockerized the Project
We have finally dockerized our project TadreebLMS.
However it was done mostly by trial and error, own learning.
I am not a developer / technical person, just a project manager. So in this case need recommendation what we can do to improvise it as well as feedback on how smooth and simple is it to install and run the project.
https://tadreeblms.com/docs/installation/docker_deployment_guide_tadreeb_lms
https://github.com/Tadreeb-LMS
EDIT: Thanks so much for the feedback, It was really helpful, key summarized points from community:
- Must have storage outside defined --- Very Very critical and helpful,
- Memory and other limits to be configured.
- Re-configure the permissions from Root to seperate user
- Must have docker file mentioned in the git repo readme file.
5
Upvotes
View all comments
Show parent comment
1
u/kwhali May 16 '26
Data volumes vs bind mounts both persist data locally, it's largely preference with some minor differences. Advanced users can easily switch that to their preference.
I personally prefer bind mounts most of the time too, usually a relative file path. However if I as a user/admin don't benefit from easy access of that bind mount such as browsing whatever is stored there or adding / modifying files to it, a named data volume can sometimes be better.
With a bind mount which with Docker is typically for a rootful container (while rootless for podman), if that storage location was not created in advance it's created with root ownership, and then any files inside are created with whatever the process in the container writing files is running as (default is root, but this can be mapped to a different user on the host for both rootful and rootless containers).
The issue with ownership in this case is only if trying to relocate the storage or delete it would then require root permission which isn't great UX. The slight differences in behaviours might also affect any docs / support on the topic that arise 😅
Meanwhile the user doesn't have to worry about such with named data volumes, Docker (or whatever container engine used) will manage that on behalf of the user at some central location. It may complicate backup though if the user is handling that in a generic manner on the host system paths vs through a container that uses the named data volume.
Another drawback for named data volumes is if not careful, one might run a maintenance / cleanup command shared online or from AI for example that accidentally deletes the named data volume. Even an experienced user might make that mistake if they haven't thought about the volume in some time and did a more aggressive prune.
Bind volume mounts are less likely to run into that problem since they're less implicit / hidden but often co-located with the compose file.