From 908f38eb26d4346674d0fc443651d54352e6b5bb Mon Sep 17 00:00:00 2001 From: Josh Knapp Date: Sun, 9 Apr 2023 16:06:00 -0700 Subject: [PATCH] Create a healthcheck lookup --- Dockerfile | 1 + configs/default-index.conf | 3 ++- configs/index.php | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 configs/index.php diff --git a/Dockerfile b/Dockerfile index 2bead4c..41df15d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,5 +18,6 @@ COPY ./configs/default-index.conf /etc/httpd/conf.d/ COPY ./configs/prod-php.ini /etc/php.ini COPY ./configs/phpinfo.php /var/www/html/index.php COPY ./configs/mariadb.repo /etc/yum.repos.d/ +COPY ./configs/index.php /var/www/html/ RUN yum clean all ENTRYPOINT [ "/scripts/entrypoint.sh" ] \ No newline at end of file diff --git a/configs/default-index.conf b/configs/default-index.conf index cdddb46..68cfa42 100644 --- a/configs/default-index.conf +++ b/configs/default-index.conf @@ -1 +1,2 @@ -DirectoryIndex index.html index.htm index.php \ No newline at end of file +DirectoryIndex index.html index.htm index.php +Alias "/ping" "/var/www/html" \ No newline at end of file diff --git a/configs/index.php b/configs/index.php new file mode 100644 index 0000000..7b65999 --- /dev/null +++ b/configs/index.php @@ -0,0 +1,2 @@ +