diff --git a/compose.yml b/compose.yml index 62682a6..6b855ea 100644 --- a/compose.yml +++ b/compose.yml @@ -6,16 +6,13 @@ services: - 5000:5000 - 80:80 - 443:443 - volumes: - - .:/code networks: - mynetwork attacker: build: docker/attacker + container_name: attacker ports: - 5001:5001 - volumes: - - .:/code networks: - mynetwork diff --git a/docker/apache2/000-default.conf b/docker/apache2/000-default.conf index a78cb72..07ae9aa 100644 --- a/docker/apache2/000-default.conf +++ b/docker/apache2/000-default.conf @@ -9,7 +9,6 @@ #ServerName www.example.com ServerAdmin webmaster@localhost - DocumentRoot /var/www/html Redirect permanent / https://localhost/ # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, @@ -27,4 +26,4 @@ # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf - \ No newline at end of file + diff --git a/docker/attacker/dockerfile b/docker/attacker/dockerfile index ec62ce3..9aa40f9 100644 --- a/docker/attacker/dockerfile +++ b/docker/attacker/dockerfile @@ -1,4 +1,4 @@ FROM alpine:latest RUN apk add --no-cache curl iputils-ping # CMD ["curl", "webserver:443"] -CMD ["ping", "webserver -c 4"] \ No newline at end of file +CMD ["ping", "webserver -c 4"]