Articles in this section
Category / Section

How to upgrade a new image in docker environment using docker compose yaml file

Published:

The following steps explain how to upgrade a new image in a Docker environment using a Docker Compose YAML file:

  1. Navigate to the location of the Docker Compose deployment file.

  2. Back up the app_data and database data from the same volumes you previously used in the current container to avoid any data loss.

    mount_volume.png

    docker-compose down
    
  3. Replace the new image tag in your Docker Compose file and save the changes. This is applicable for both the single-compose and multi-compose YAML files.

    For Single docker-compose yaml file:

    new_image.png

    For Multi docker-compose yaml file:

    multi-container.png

    Note: For multiple containers, you can use the latest image in your deployment YAML for all services such as (id-web, id-api, id-ums, bi-web, bi-api, bi-jobs, and bi-dataservice).

  4. Use the following command to start your container with the new image tag.

    docker-compose up -d
    
Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SS
Written by Sivanesan Saravanan
Updated
Comments (0)
Please  to leave a comment
Access denied
Access denied