Restart Policy


  • restart property accepts the same values we learned before.
    • on-failure
    • unless-stopped
    • always
    • none
version: '3'
services:
  myApp:
...
    restart: on-failure
...