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/