mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Refactored docker-compose roles
This commit is contained in:
6
roles/docker-container/templates/healthcheck/tcp.yml.j2
Normal file
6
roles/docker-container/templates/healthcheck/tcp.yml.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
healthcheck:
|
||||
test:
|
||||
- "CMD"
|
||||
- "bash"
|
||||
- "-c"
|
||||
- "exec 3<>/dev/tcp/localhost/{{ container_port }} && echo -e 'GET /{{ container_healthcheck | default('') }} HTTP/1.1\\r\\nHost: localhost\\r\\nConnection: close\\r\\n\\r\\n' >&3 && cat <&3 | grep -q 'HTTP/1.1'"
|
Reference in New Issue
Block a user