From ab77542d388e6bec785d0b73358a920d68bf51fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Tue, 22 Feb 2022 02:09:19 +0100 Subject: [PATCH] done for real --- README.md | 17 +++++++++++++++++ server/Dockerfile | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ab94fc7 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +## Starting the project + +Everything is packaged via Docker Compose. Just build the images and run them. + +```bash +docker-compose build + +docker-compose up -d +``` + +## Usage + +By default the load balancer is bound to the local machine's 8080 port. Sending a web request via any browser (or cURL) should return the id of the serving container. + +```bash +curl http://127.0.0.1:8080/ +``` diff --git a/server/Dockerfile b/server/Dockerfile index 1b2e2c5..1107ef3 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,5 +1,5 @@ FROM httpd:2.4.52 -COPY script.sh /usr/local/apache2/cgi-bin/ +COPY --chown=www-data:www-data script.sh /usr/local/apache2/cgi-bin/ COPY httpd.conf /usr/local/apache2/conf/