I have a docker-compose.yaml
file with a bunch of services that make up an app:
services:
mongo:
redis:
rabbitmq:
typesense:
app-01:
app-02:
app-lb:
Here app-lb
is a haproxy
container load balancing app-01
and app-02
.
The idea was that I could stop either one of them, build, and bring up. Then do the same with the other one, without any downtime.
docker compose stop app-01
docker compose build app-01
docker compose start app-01
But this is not working, it will just start the old container.
After the build I can do docker compose up
, but that will also restart/recreate all the other services, causing downtime.
Is this possible?
1