iac/ansible/artifacts/locust/docker-compose.yml

27 lines
880 B
YAML

# SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
---
version: "3"
services:
master:
image: realaravinth/mcaptcha-dos-locust-protected:latest
container_name: master.locust.thrasher.dos.mcaptcha.org
environment:
- MCAPTCHA_CAPTCHA_SITEKEY=dPGVlwxjyPQJS5OEp86gzNJsxbrMlXwQ
- MCAPTCHA_CAPTCHA_HOST=http://localhost:7000
- HOST=http://localhost:5000
ports:
- 8089:8089
volumes:
- ./data/:/src/data
command: --master -H http://localhost:8089
worker:
image: realaravinth/mcaptcha-dos-locust-protected:latest
network_mode: host
environment:
- MCAPTCHA_CAPTCHA_SITEKEY=dPGVlwxjyPQJS5OEp86gzNJsxbrMlXwQ
- MCAPTCHA_CAPTCHA_HOST=http://localhost:7000
- HOST=http://localhost:5000
command: --worker --master-host localhost