Web healthcheck: обнуление всех четырёх прокси-переменных (Containerfile, compose, workflow)
This commit is contained in:
@@ -265,7 +265,7 @@ jobs:
|
|||||||
image: $REGISTRY/wordpdf-web:prod
|
image: $REGISTRY/wordpdf-web:prod
|
||||||
restart: on-failure:5
|
restart: on-failure:5
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "http_proxy= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1"]
|
test: ["CMD-SHELL", "HTTP_PROXY= http_proxy= HTTPS_PROXY= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# См. комментарий у app: дубль HEALTHCHECK из wordpdf-web/Containerfile
|
# См. комментарий у app: дубль HEALTHCHECK из wordpdf-web/Containerfile
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "http_proxy= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1"]
|
test: ["CMD-SHELL", "HTTP_PROXY= http_proxy= HTTPS_PROXY= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|||||||
+1
-1
@@ -32,7 +32,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# См. комментарий у app: дубль HEALTHCHECK из wordpdf-web/Containerfile
|
# См. комментарий у app: дубль HEALTHCHECK из wordpdf-web/Containerfile
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "http_proxy= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1"]
|
test: ["CMD-SHELL", "HTTP_PROXY= http_proxy= HTTPS_PROXY= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
start_period: 10s
|
start_period: 10s
|
||||||
|
|||||||
@@ -19,4 +19,4 @@ FROM docker.io/library/nginx:alpine
|
|||||||
COPY --from=build /build/dist /usr/share/nginx/html
|
COPY --from=build /build/dist /usr/share/nginx/html
|
||||||
# прокси-переменные хоста подмешиваются в HEALTHCHECK-шелл — обнуляем на команде
|
# прокси-переменные хоста подмешиваются в HEALTHCHECK-шелл — обнуляем на команде
|
||||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s \
|
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s \
|
||||||
CMD http_proxy= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1
|
CMD HTTP_PROXY= http_proxy= HTTPS_PROXY= https_proxy= wget -qO /dev/null http://127.0.0.1/ || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user