diff --git a/compose.yml b/compose.yml index d78b580..62682a6 100644 --- a/compose.yml +++ b/compose.yml @@ -1,6 +1,7 @@ services: webserver: build: docker/apache2 + container_name: webserver ports: - 5000:5000 - 80:80 diff --git a/docker/apache2/000-default.conf b/docker/apache2/000-default.conf index 6f1d8c7..a78cb72 100644 --- a/docker/apache2/000-default.conf +++ b/docker/apache2/000-default.conf @@ -10,6 +10,7 @@ ServerAdmin webmaster@localhost DocumentRoot /var/www/html + Redirect permanent / https://localhost/ # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. diff --git a/docker/attacker/dockerfile b/docker/attacker/dockerfile index 6845798..ec62ce3 100644 --- a/docker/attacker/dockerfile +++ b/docker/attacker/dockerfile @@ -1,3 +1,4 @@ FROM alpine:latest -RUN apk add --no-cache curl -CMD ["curl", "webserver:80"] \ No newline at end of file +RUN apk add --no-cache curl iputils-ping +# CMD ["curl", "webserver:443"] +CMD ["ping", "webserver -c 4"] \ No newline at end of file