Add container names for webserver and attacker services in Docker Compose
This commit is contained in:
parent
c78722e2d6
commit
2bf23d2750
1 changed files with 2 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
services:
|
services:
|
||||||
webserver:
|
webserver:
|
||||||
build: docker/apache2
|
build: docker/apache2
|
||||||
|
container_name: webserver
|
||||||
ports:
|
ports:
|
||||||
- 5000:5000
|
- 5000:5000
|
||||||
- 80:80
|
- 80:80
|
||||||
|
@ -9,6 +10,7 @@ services:
|
||||||
- mynetwork
|
- mynetwork
|
||||||
attacker:
|
attacker:
|
||||||
build: docker/attacker
|
build: docker/attacker
|
||||||
|
container_name: attacker
|
||||||
ports:
|
ports:
|
||||||
- 5001:5001
|
- 5001:5001
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue