From cc0e67dc23aae716a032fc8055eecdb570d97d3b Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 6 Feb 2024 20:24:16 +0100 Subject: [PATCH] Added cli commands --- roles/docker-mariadb/README.md | 5 +++++ roles/docker-pixelfed/README.md | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/roles/docker-mariadb/README.md b/roles/docker-mariadb/README.md index cb6f9f78..f7e6cf79 100644 --- a/roles/docker-mariadb/README.md +++ b/roles/docker-mariadb/README.md @@ -23,5 +23,10 @@ Configure the role by setting the required variables. These can be set in the pl - `database_username`: The username for the database user. - `database_password`: The password for the database user. +## Execute SQL commands +```bash +docker exec -it central-mariadb mysql -u root -p +``` + ## Contributing Contributions to this project are welcome. Please submit issues and pull requests with your suggestions. diff --git a/roles/docker-pixelfed/README.md b/roles/docker-pixelfed/README.md index 02a76ca6..0b7f3880 100644 --- a/roles/docker-pixelfed/README.md +++ b/roles/docker-pixelfed/README.md @@ -10,6 +10,11 @@ To gain shell access to the application container, run the following command: docker-compose exec -it application bash ``` +### Clear Cache +```bash +docker compose exec -it application php artisan cache:clear +``` + ### Database Access To access the MariaDB instance in the database container, run the following command: ```bash