locust_app/docker-compose.yml

30 lines
545 B
YAML

version: '3'
services:
master:
image: locustio/locust:latest
ports:
- "8089:8089"
volumes:
- .:/mnt/locust
working_dir: /mnt/locust
command: -f locustfile.py --master -H http://master:8089
networks:
- locust
worker:
image: locustio/locust:latest
volumes:
- .:/mnt/locust
working_dir: /mnt/locust
command: -f locustfile.py --worker --master-host master
deploy:
mode: replicated
replicas: 8
networks:
- locust
networks:
locust:
driver: bridge