netbox-community / netbox-docker

🐳 Docker Image of NetBox
https://github.com/netbox-community/netbox-docker/wiki
Apache License 2.0
1.81k stars 828 forks source link

Restart Policy in the YAML? #1175

Closed Jadrie closed 6 months ago

Jadrie commented 6 months ago

Desired Behavior

Would it be possible to add a restart policy to the docker compose yaml?

Contrast to Current Behavior

presently there is no line in the docker-compose for restarting.

Required Changes

add the following line to each service- restart: unless-stopped

Discussion: Benefits and Drawbacks

container will automatically restart if it's ever not running, if say, the server reboots.

tobiasge commented 6 months ago

You can set the restart policy in the override file.