docker-compose-lamp icon indicating copy to clipboard operation
docker-compose-lamp copied to clipboard

[QUESTION] Why are the `werbserver` and `database` containers set to run when host machine boots?

Open govarthenan opened this issue 1 year ago • 3 comments

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.

govarthenan avatar Feb 16 '24 07:02 govarthenan

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 avatar Feb 17 '24 14:02 tinodesigns

@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 avatar Feb 18 '24 20:02 govarthenan

@govarthenan sorry I'dn't know that. I'm a bit new to docker myself. May be someone else can help here?

tinodesigns avatar Feb 19 '24 12:02 tinodesigns