Making service connect and stay up through docker network

i had seen that technique before but there is a second part that is critical which most explinations overlook

  1. do not use entrypoint because that will override the command in your docker compose.
  2. to login to the container you must use
#To enable login to container left running
docker exec -it <my container started using docker compose up>  /bin/bash

@tekki thanks for the collab!