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?