You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ports: stanza for nginx represents what I need in my system. Obviously, you'll want to customize this to your particular needs, assuming you require it at all.
I found that under normal circumstances, the web container appears to be a "run-once" kind of thing. When you start OpenEats it will fire up, and terminate (presumally successfully). As this seems to be desired behaviour I set it to restart: on-failure instead of always as is done for the other containers.
Submitted in the hopes that this helps others looking to implement similar auto-start behaviour.
The text was updated successfully, but these errors were encountered:
jnikolich
changed the title
OpenEats Doesn't Auto-Start at ystem boot/restart
OpenEats Doesn't Auto-Start at System Boot/Restart
Sep 26, 2018
As for your comment about the web container, it's job is to generate a js bundle that nginx will serve. It saves the public content to a docker volume then exits when it's done. So your restart on-failure is correct.
(This isn't so much an issue, as a documentation enhancement request)
It appears that, by default, OpenEats will not auto-start whenever the Docker host is booted, and/or when Docker is fired up.
I found that I could cause auto-starting to happen correctly (at least for me) with the following definitions in my
docker-prod.override.yml
file:docker-prod.override.yml
Notes/Comments
ports:
stanza for nginx represents what I need in my system. Obviously, you'll want to customize this to your particular needs, assuming you require it at all.web
container appears to be a "run-once" kind of thing. When you start OpenEats it will fire up, and terminate (presumally successfully). As this seems to be desired behaviour I set it torestart: on-failure
instead ofalways
as is done for the other containers.Submitted in the hopes that this helps others looking to implement similar auto-start behaviour.
The text was updated successfully, but these errors were encountered: