-
-
Save Mre11i0t/d16ed39e543094b50019d58d7e4bff99 to your computer and use it in GitHub Desktop.
Sample Scenario of how my deployment looks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
timer: | |
build: | |
context: ./timer | |
dockerfile: Dockerfile | |
image: cybersecurity_attack_chain_timer | |
environment: | |
- LAB=cybersecurity_attack_chain | |
- PROJECT_NAME='{{index .Service.Labels "com.docker.stack.namespace"}}' | |
cybersecurity_attack_chain: | |
build: ./ubuntu | |
image: cybersecurity_attack_chain_ubuntu | |
tty: true | |
ports: | |
- "6901" | |
deploy: | |
placement: | |
constraints: [node.role==manager] | |
networks: | |
- webapp_network | |
pivot: | |
build: | |
context: ./Pivot | |
dockerfile: Dockerfile | |
image: cybersecurity_attack_chain_pivot | |
tty: true | |
networks: | |
- pivot_network | |
webserver: | |
build: | |
context: ./WebServer | |
dockerfile: Dockerfile | |
image: cybersecurity_attack_chain_webserver | |
tty: true | |
networks: | |
- pivot_network | |
- webapp_network | |
networks: | |
pivot_network: | |
webapp_network: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment