##// END OF EJS Templates
services: fixed healthchecks
marcink -
Show More
@@ -46,10 +46,11 b' services:'
46 command: ["channelstream"]
46 command: ["channelstream"]
47
47
48 healthcheck:
48 healthcheck:
49 test: [ "CMD", "curl", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "http://channelstream:8000/admin/sign_in" ]
49 test: curl -A RhodeCode-Healthcheck -s -o /dev/null -w '%{http_code}' http://channelstream:8000/admin/sign_in
50 timeout: 5s
50 timeout: 30s
51 interval: 60s
51 start_period: 5s
52 retries: 10
52 interval: 60s
53 retries: 10
53
54
54 volumes:
55 volumes:
55 - confvolume:/etc/rhodecode/conf
56 - confvolume:/etc/rhodecode/conf
@@ -87,9 +88,9 b' services:'
87 - ${RC_ENV_FILE:?must-specify-rc-env-file}
88 - ${RC_ENV_FILE:?must-specify-rc-env-file}
88
89
89 healthcheck:
90 healthcheck:
90 # change port 80 to 443 when only using SSL
91 test: curl -A RhodeCode-Healthcheck -s -o /dev/null -w '%{http_code}' --fail http://127.0.0.1:80/_health_static
91 test: [ "CMD", "curl", "-A", "RhodeCode-Healthcheck", "-s", "-o", "/dev/null", "-w", "'%{http_code}'", "--fail", "http://127.0.0.1:80/_health_static", "||", "exit 1" ]
92 timeout: 30s
92 timeout: 30s
93 start_period: 5s
93 interval: 60s
94 interval: 60s
94 retries: 10
95 retries: 10
95
96
General Comments 0
You need to be logged in to leave comments. Login now