diff --git a/Readme.md b/Readme.md index 04207322cc170b18002e17d2ecaee86c2829b99b..ca138de151cfd58858f67f9824366f373e033052 100644 --- a/Readme.md +++ b/Readme.md @@ -2,7 +2,7 @@ 1. `git clone https://gitlab.tetras-libre.fr/nocloud/docker/dolibarr` -2. Copy appropriate .env (Dev or prod). +2. Copy appropriate .env (Dev or prod). - `cp .env.dev.sample .env` - `cp .env.prod.sample .env` @@ -11,7 +11,7 @@ 4. If required change `DOLI_VERSION` in `.env` file, see https://github.com/Dolibarr/dolibarr/tags 5. `docker-compose up`, the first docker-compose up takes time because we have git clone. **You need to wait the end of git clone** 6. This will create 2 directories `dolibarr_src` : dolibarr code source and logs and `dolibarr_db`: mysql files -7. Create a link to the dolibarr custom directory (where you should put your modules): +7. Create a link to the dolibarr custom directory (where you should put your modules): - `ln -s dolibarr_src/htdocs/custom/ src` 8. Give the permissions for dolibarr to write the dolibarr_src directory, these rights will be fixed later by `./doli perms` ``` @@ -26,15 +26,25 @@ chown -R :www-data dolibarr  -Setup following fields : +Setup following fields : - Serveur de base de données : in dev mariadb - Identifiant `dolibarr` -- Mot de passe : Password from `PASS` variable in your .env +- Mot de passe : Password from `PASS` variable in your .env 12. Go to Configuration > Email and configure the mail server 13. Go to Configuration > Societe / Organisation and configure the organisation +## Config Fail2Ban + +1. [ ] login in administrator "config" > "moduls/application" +4. [ ] Activate log modules +5. [ ] Set log level on "LOG_NOTICE (6)" +6. [ ] Switch in root user +7. [ ] `./doli fail2ban` +8. [ ] Enter name of instance interactivly +9. [ ] `systemctl restart fail2ban` + ## Databases (For developpement) There is a `dumps/` directory in this repository holding a very old dump from a dev instance of Dolibarr 9.x