Hi All,
I could use some assistance.
I am attempting to install ERPNext with custom apps using Docker Compose. Though I am running into a few problems.
I cloned the main branch from here to generate the containers -
Using the compose.yaml
config always fails to run the short and long queues for some reason. The following error is thrown:
Please make sure that Redis Queue runs @ redis://. Redis reported error: Error 99 connecting to localhost:6379. Cannot assign requested address
.
Though if I do a netstat the mentioned port doesn’t seem to be used.
Anyway running the containers with the default image in pwd.yml
seems to generate everything fine and I can access my ERPNext frontend on port 8080.
docker compose -p pwd -f pwd.yml up
My main issue is with the custom image not running the frontend container.
The error thrown when trying to start the container is:
exec /usr/local/bin/nginx-entrypoint.sh: no such file or directory
Here are the steps to replicate:
- Docker version 24.0.6, build ed223bc
- Windows 10 Home 22H2 19045.4046
- Creating an environment variable for apps.json and pass it as an argument to docker build.
apps.json:
[
{
"url": "https://github.com/frappe/erpnext.git",
"branch": "version-15"
},
{
"url": "https://github.com/frappe/hrms.git",
"branch": "version-15"
},
{
"url": "https://github.com/frappe/lms.git",
"branch": "main"
},
{
"url": "https://github.com/frappe/wiki.git",
"branch": "master"
}
]
Environment Variable:
export APPS_JSON_BASE64=$(base64 -w 0 development/apps.json)
- Build a custom image passing the above variable as an argument.
docker build \
--build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
--build-arg=FRAPPE_BRANCH=version-15 \
--build-arg=PYTHON_VERSION=3.11.6 \
--build-arg=NODE_VERSION=18.18.2 \
--build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
--tag=siegang1/erpnext-custom:1.0.0 \
--file=images/custom/Containerfile .
- Log into Docker and push the image.
docker login
docker push siegang1/erpnext-custom:1.0.0.
-
Since only the
pwd.yml
config worked for me - replace all instances ofimage: frappe/erpnext:v15.15.0
withimage: siegang1/erpnext-custom:1.0.0
-
Run the containers with
docker compose -p pwd -f pwd.yml up
- All containers run fine except for the frontend container
I apologies if its a silly issue or if I missed a step mentioned in the docs. I’m not too well versed with Docker.
Thank you.