Dev environments use docker compose up instead of docker compose run.
I was confused when using docker compose run that when listing the containers running in the project, apicast was not there. I learned it is because we were using docker compose run. Then I learned that run command is meant fro running "one-off" task. More appropriate for running tests. Furthermore, it does not respect some service configuration like command or ports.
WHAT
Dev environments use
docker compose up
instead ofdocker compose run
.I was confused when using
docker compose run
that when listing the containers running in the project, apicast was not there. I learned it is because we were usingdocker compose run
. Then I learned thatrun
command is meant fro running "one-off" task. More appropriate for running tests. Furthermore, it does not respect some service configuration like command or ports.