Last active
August 9, 2019 09:43
-
-
Save RawSanj/83bd616367cd7d17d2f65b5902db6869 to your computer and use it in GitHub Desktop.
docker-compose.yml file to crash/post random data to www.naukriwayindia.com fraudulent website
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.7' | |
services: | |
load-crash-site: | |
image: 'rawsanj/load-crash-site:1.0.0' | |
ports: | |
- "8080" | |
volumes: | |
- $HOME/.m2:/root/.m2 | |
deploy: | |
mode: replicated | |
replicas: 5 | |
environment: | |
- REPEAT_COUNT=10 | |
- PARALLEL_REQUESTS=10 |
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
# Download the docker-compose.yml file | |
curl -LO https://gist.githubusercontent.com/RawSanj/83bd616367cd7d17d2f65b5902db6869/raw/84ad35e9ca72a12af466a61cb14a6481d82caf8a/docker-compose.yml | |
# Run containers in docker-compose mode. Starts 1 containers | |
docker-compose up -d | |
docker-compose scale load-crash-site=10 # Scale to 10 Containers | |
# OR | |
# Run containers in docker swarm mode. Starts 5 containers. | |
docker stack deploy --compose-file docker-compose.yml crash-it | |
docker service scale crash-it_load-crash-site=10 # Scale to 10 Containers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment