- A stack is described in
compose.yaml: a service is a container withdocker runoptions, and the service name is a name in the project network. docker compose psshows the state of the services,logs <service>shows a log; the failed service writes the reason itself.up -dre-creates the services whose description changed;restartrestarts the same container — for mounted files.downremoves the project's containers and network and keeps the volumes;healthcheckmarks a container(healthy)or(unhealthy).- The site answered 502 because backend kept restarting:
compose.yamlhadAPP_MODE: prodution, and the application exited with code 1.
Step 7 of 7 · summary · 2 min
Summary
Found an inaccuracy? Report an error in the lesson