Hi ,
I am trying to apply health check to my app container with TCP port. But, as soon as I apply heath check container fails to start. I tried with 2-3 other applications, but results are same.
I would also I like to know difference between TCP and HTTP health check.
My Docker compose:
amol-app1:
ports:
- 8050:80/tcp
- 3478:3478/tcp
tty: true
image: amolsh/php-app
stdin_open: true
My Rancher compose
amol-app1:
scale: 3
health_check:
port: 3478
interval: 2000
unhealthy_threshold: 3
request_line: ''
healthy_threshold: 2
response_timeout: 2000