We use our gitlab-ci to build fresh images with the latest version of our code.
These images are day to day built with the latest
tag.
We tag images during the rele
The process should be:
docker-compose pull
docker-compose up
If you have volumes, then those will be persistent by design. If you need your volumes to not be persistent, then you may want to reconsider having that data inside a volume, or you'll need to reset the volume on every redeploy with a docker-compose down -v
to remove the containers and the volumes.
If you still have issues with this, make sure your install of docker and docker-compose are current.