To use update your docker-compose.yml
file to include the following:
project_name-site:
build: https://github.com/TallieuTallieu/dry-docker.git
You can fix the version of the image by using a specific tag:
project_name-site:
build: https://github.com/TallieuTallieu/dry-docker.git#v1.0.1
Run docker-compose up --build
to update the image.
You can make changes to the Dockerfile for a specific project by creating a new branch and using this in the build
line in the docker-compose.yml
file.
project_name-site:
build: https://github.com/TallieuTallieu/dry-docker.git#branch_name
Or you can copy and paste the Dockerfile into your project and make changes there.
If you make changes to the Dockerfile, make sure you create a new tag using semantic versioning and describe the changes in the tag description.
git tag -a 1.0.1 -m "Description of changes"
git push origin 1.0.1