1
0
Fork 0

done for real

This commit is contained in:
Torma Kristóf 2022-02-22 02:09:19 +01:00
parent afcfd8613c
commit ab77542d38
2 changed files with 18 additions and 1 deletions

17
README.md Normal file
View File

@ -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/
```

View File

@ -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/