Here's a concise guide for setting up the infrastructure using Docker:
- Ensure Docker and Docker Compose are installed on your system.
- Clone the cloud_basic_exam repository to get the required directories and volume setup.
- Navigate to the repository directory and start the services with:
docker-compose up -d
Services Overview:
- Nextcloud: File hosting service accessible at
http:https://localhost:8080
. - MySQL (MariaDB): Database for Nextcloud's data storage.
- Locust: Load testing service, requires
locustfile.py
in the specified directory.
- Disable Nextcloud's security measures for testing purposes:
-
Execute the following command to add
nextcloud
to trusted domains:docker exec --user www-data nextcloud php /var/www/html/occ config:system:set trusted_domains 2 --value=nextcloud
-
Add these lines to
config.php
to disable rate limiting and file locking:'ratelimit.protection.enabled' => false, 'filelocking.enabled' => false,
-
-
Stop and remove all services with:
docker-compose down
-
To remove volumes and preserve data, use:
docker-compose down --volumes