swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

Attach restart policy to docker composes #165

Closed bridgedragon closed 2 years ago

bridgedragon commented 2 years ago

Feature Request

Feature Description

Docker composes should have a "restart: always" policy.

bridgedragon commented 2 years ago

It should be added param "max-attempts", to avoid enless loops when cointainer fails I suggest 3 attempts

phoenix-web3 commented 2 years ago

max-attempts shouldn't be added because is already added in another format:

restart: on-failure:5

is the same that if we do:

restart:
  condition: on-failure
  max-attempts: 5