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