Frappe docker prod setup

i have one site running using production, i am unable to find any documentation for updating the app that is running in container

my questions are :

  1. how to update the apps ? → i have made changes in github repo i want it in my app
  2. if i make some changes in the doctypes do i have to rebuild the docker image ??
1 Like

Hello,

In a Docker setup, it is better to re-build the image. Include in the new image all the updated versions of all your apps.

Then simply, run the “docker compose” pointing to the new image.

Just run “bench migrate” inside the container to run any patching or run post install scripts.

1 Like

To add to what @knimer said, just run this from the folder where your docker-compose.yaml lives:

docker compose exec backend bench --site [your_site_name] migrate

after you switch to your newly built image.

3 Likes

thank you

1 Like

Thank you