Skip to content

Instantly share code, notes, and snippets.

@Mre11i0t
Created January 26, 2023 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Mre11i0t/d16ed39e543094b50019d58d7e4bff99 to your computer and use it in GitHub Desktop.
Save Mre11i0t/d16ed39e543094b50019d58d7e4bff99 to your computer and use it in GitHub Desktop.
Sample Scenario of how my deployment looks
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