docker-compose-lamp
docker-compose-lamp copied to clipboard
[QUESTION] Why are the `werbserver` and `database` containers set to run when host machine boots?
In the docker-compose.yaml
, the two aforementioned containers are configured restart: "always"
. This makes both of those containers to compose and start automatically after my laptop boots.
Is this the intended behavior? If yes/no please explain why it was configured in such a way.
I personally like ti that way, I have it on a homeserver and want it to be reachable all the time in my network. Also this could be easily changed, no?
@tinodesigns I understand why one might want those containers to autostart.
Do you have any idea how to stop this autostarting behavior? Because the last time I set restart: "unless-stopped"
, the stack seemed to crash for some reason.
@govarthenan sorry I'dn't know that. I'm a bit new to docker myself. May be someone else can help here?