docker compose up is used to spin up your docker-compose file. There is no compose redeploy
docker compose up
The way to redeploy after some changes you either stop or do a
docker compose down
Compose redeploy
To redeploy you have to rebuild your solution. You use the build command.
docker compose build
docker compose up
If you have multiple docker image and don’t want to redeploy everything you can specify which ones by naming it.
docker compose build frontend
docker compose up --no-deps -d frontend
Docker source: https://docs.docker.com/compose/production/#deploying-changes