services: webserver: build: docker/apache2 ports: - 5000:5000 - 80:80 - 443:443 volumes: - .:/code networks: - mynetwork attacker: build: docker/attacker ports: - 5001:5001 volumes: - .:/code networks: - mynetwork networks: mynetwork: external: false