diff --git a/HOWTOS.md b/HOWTOS.md index fd81ba4001ee1e40fe4642e4287efbe2a7d11942..a80cc5a0480a012453bed2cf2293bb551d497ce1 100644 --- a/HOWTOS.md +++ b/HOWTOS.md @@ -13,10 +13,36 @@ To make modifications to the main NiFi pipeline and add it to the Ansible playbo `utils/flow2template.py flow.xml.gz roles/nifi/templates/flow.xml.j2` -Restart services inside docker containers ------------------------------------------ +Update configuration files in docker containers using Ansible +------------------------------------------------------------- +To update configuration files for all docker containers together, run the following command: + ansible-playbook -i inventories soctools.yml -t update-config +To update configuration files only for specific services, run the following commands: + ansible-playbook -i inventories soctools.yml -t update-keycloak-config + ansible-playbook -i inventories soctools.yml -t update-thehive-config + + +Restart services inside docker containers using Ansible +------------------------------------------------------- +To restart services for all docker containers together, run the following command: + ansible-playbook -i inventories soctools.yml -t restart +To restart services only for specific docker containers, run the following commands: + ansible-playbook -i inventories soctools.yml -t restart-keycloak + ansible-playbook -i inventories soctools.yml -t restart-thehive + +Stop services inside docker containers using Ansible +---------------------------------------------------- +To stop services for all docker containers together, run the following command: + ansible-playbook -i inventories soctools.yml -t stop +To stop services only for specific docker containers, run the following commands: + ansible-playbook -i inventories soctools.yml -t stop-keycloak + ansible-playbook -i inventories soctools.yml -t stop-thehive + +Restart services inside docker containers manually +-------------------------------------------------- To restart services inside docker containers after changes in configuration files: 1. Attache container: docker exec -it container_id_or_name bash (example: docker exec -it soctools-keycloak bash) 2. List services and their statuses: supervisorctl status 3. Restart service: supervisorctl restart supervisor_service_name (example: supervisorctl restart keycloak) 4. Detach from container: exit +