@pronext
my compose file followed frappe_docker/pwd.yml at main · frappe/frappe_docker · GitHub
i just change image name by my image
and i did the following:
step 1: build my image
docker build \
--build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
--build-arg=FRAPPE_BRANCH=develop \
--build-arg=PYTHON_VERSION=3.11.4 \
--build-arg=NODE_VERSION=18.17.1 \
--build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
--tag=hieu/frappe:v1.0 \
--file=images/custom/Containerfile .
step 2: docker push hieu/frappe:v1.0
step 3: docker compose -p frappe -f pwd.yml up -d
step 4: i change some code in custom repo
step 5: i rebuild image witth other tag
docker build --no-cache \
--build-arg=FRAPPE_PATH=https://github.com/frappe/frappe \
--build-arg=FRAPPE_BRANCH=develop \
--build-arg=PYTHON_VERSION=3.11.4 \
--build-arg=NODE_VERSION=18.17.1 \
--build-arg=APPS_JSON_BASE64=$APPS_JSON_BASE64 \
--tag=hieu/frappe:v1.1 \
--file=images/custom/Containerfile .
step 6: docker push hieu/frappe:v1.1
step 7: docker compose -p frappe -f pwd.yml down
step 8: docker rm $(docker ps -aq)
step 9: docker pull hieu/frappe:v1.1
step 10: change image in pwd.yml from v1.0 to v1.1 and
docker compose -p frappe -f pwd.yml up -d
i I did not delete any volume but all data not persist.
my step followed by Overview Frappe, Docker, self-hosting - Install / Update / Deployment - Frappe Forum