Compare commits
No commits in common. "2e2ec0885cea87a0f0dbb4d974be942dddd5117b" and "886b4d530c778d23507142a1e246e2044ec1f7d3" have entirely different histories.
2e2ec0885c
...
886b4d530c
4 changed files with 12 additions and 14 deletions
|
@ -1,13 +1,11 @@
|
||||||
services:
|
services:
|
||||||
webserver:
|
webserver:
|
||||||
dockerfile: docker/apache2/dockerfile
|
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "5000:5000"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/code
|
- .:/code
|
||||||
attacker:
|
attacker:
|
||||||
dockerfile: docker/attacker/dockerfile
|
|
||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "5001:5001"
|
- "5001:5001"
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
FROM ubuntu:lastest AS webserver
|
|
||||||
RUN apt-get update && apt-get install -y apache2
|
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
|
||||||
COPY ./public/ .
|
|
||||||
|
|
||||||
|
|
||||||
CMD ["apache2ctl", "-D", "FOREGROUND"]
|
|
|
@ -1,4 +0,0 @@
|
||||||
FROM alpine:latest AS attacker
|
|
||||||
RUN apk add --no-cache curl
|
|
||||||
|
|
||||||
CMD ["curl", "webserver:80"]
|
|
12
dockerfile
Normal file
12
dockerfile
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
FROM ubuntu:lastest AS webserver
|
||||||
|
RUN apt-get update && apt-get install -y apache2
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
|
COPY ./public/ .
|
||||||
|
|
||||||
|
CMD ["apache2ctl", "-D", "FOREGROUND"]
|
||||||
|
|
||||||
|
FROM alpine:latest AS attacker
|
||||||
|
RUN apk add --no-cache curl
|
||||||
|
|
||||||
|
CMD ["curl", "webserver:80"]
|
Loading…
Add table
Add a link
Reference in a new issue