For the frontend/containerpilot.json5, the consul-agent and memory-sensor jobs have restarts: 'unlimited', but the frontend job doesn't:
|
{ |
|
name: 'frontend', |
|
port: {{.PORT}}, |
|
exec: 'node /opt/app/', |
|
health: { |
|
exec: '/usr/bin/curl -o /dev/null --fail -s http://localhost:{{.PORT}}/check-it-out', |
|
interval: 2, |
|
ttl: 5 |
|
}, |
|
tags: [ |
|
'traefik.backend=frontend', |
|
'traefik.frontend.rule=Path: /,/lib/{[a-z]+},/js/{[a-z]+}', |
|
'traefik.frontend.entryPoints=http,ws,wss' |
|
] |
|
}, |
I'm trying to understand when restarts: 'unlimited' should be used.
Can someone explain to me why the frontend job is not restarts: 'unlimited' while the consul-agent and memory-sensor jobs are?
For the
frontend/containerpilot.json5, theconsul-agentandmemory-sensorjobs haverestarts: 'unlimited', but thefrontendjob doesn't:nodejs-example/frontend/containerpilot.json5
Lines 4 to 18 in 7ca8cc6
I'm trying to understand when
restarts: 'unlimited'should be used.Can someone explain to me why the
frontendjob is notrestarts: 'unlimited'while theconsul-agentandmemory-sensorjobs are?