The version of both the services i.e., I ran bench --site frontend version
bench = 15.4.0 and
erpnext = 15.4.0 as per the main branch.
Now, post the setup, I can see the first login screen, by this time I haven’t setup the account or gone through the wizard, as I am trying to install the hrms module.
So, I go inside the frappe backend container and run the following:
bench find
bench get app --branch version-15 hrms
bench --site frontend list-apps (here I can see that all the three apps, i.e., frappe, erpnext and hrms is listed out)
bench --site frontend install-app hrms
Finally, I ran bench migrate --skip-failing
I exit out and do the same process in my frappe-frontend-1 container. I then restart my compose stack using docker compose -p frappe restart and it should’ve added the module but then I get this error:
frappe.exceptions.DoesNotExistError: Module HR not found.
A container restart resets all running processes and services inside the container. This means that any applications that require manual startup or are running as processes/services will need to be restarted after the container restart.
The problem can be solved in two ways. Prepare a docker image containing an already installed HR module according to the instructions: https://github.com/frappe/frappe_docker/blob/main/docs/custom-apps.md
The only solution I can think of is to get a base ubuntu image, 20.04 LTS or higher would do, install bench on top of it. Harden your image and the operating system.
Then run docker commit <container_id> <image_name>:<tag>
Then simply launch it, and go inside the container to use bench and install apps like: