Starts (or tears down) every service defined in docker-compose.yml together, with the network between them already wired up.
| Command | Containers | Network | Volumes | Images |
|---|---|---|---|---|
stop | stopped, kept | kept | kept | kept |
down | removed | removed | kept | kept |
down -v | removed | removed | deleted | kept |
down --rmi all | removed | removed | kept | deleted |
up -d after a config change recreates only the services whose config or image changed.
db:5432), not localhostdepends_on only orders startup; it does not wait for the app to be ready unless you add a healthcheck and condition: service_healthy.env next to the compose file are substituted automaticallyup --build (or a bind mount); plain up reuses the old image