DEV Community

Discussion on: Don't just "docker-compose up"

Collapse
 
leadegroot profile image
Lea de Groot

I swap between 2 different containers regularly, so I have little aliases written for aup and bup, one for each project.
For the different containers, they do:

docker-compose down
cd <a or b directory>
docker-compose up -d
docker-compose logs -f fpm

(the fpm because they are both nginx based stacks)
Works nicely and the log tails I see my containers are ready whereupon I ctrl-d and get to work :)

Of course, there is the inevitable "oh look, I have run out of memory" :( rm images, rm containers, rm volumes, restart :(