I have a daemon to to serve a business. It runs in a container and listens a port. I wrote a docker-compose and use this option:
It’s work find, until the port cant be exposed normally just after my daemon restart and container no recreate.
I have never saw this problem before I use docker-compose.
Two weeks ago, I start to use docker-compose to manage my several containers.
As soon as I use docker-compose, this problem happen…
How can I fix this problem. I wouldn’t like to recreate container after my daemon restart. Is this a bug in docker compose or anything I missing about docker or docker compose?