diff --git a/Readme.md b/Readme.md index 28931041829fbd2d752cfd1af38c975b92ea7c0d..940004fdcb03a4be5e197177eab094a14b608e83 100644 --- a/Readme.md +++ b/Readme.md @@ -1,21 +1,36 @@ ## Setting up your environement -1. Clone this repository -2. `cp .env.sample .env` -3. Edit .env (change DB password) +1. `git clone gitlab@gitlab.tetras-libre.fr:nocloud/docker/dolibarr.git` + +2. Copy appropriate .env (Dev or prod). + +- `cp .env.dev.sample .env` +- `cp .env.prod.sample .env` + +3. In production edit .env (DB password at least) 4. If required change `DOLI_VERSION` in `.env` file 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): `ln -s dolibarr_src/htdocs/custom/ src` -8. Set some basic rights for the installer to run -``` -sudo chown -R $(whoami):33 dolibarr_src -sudo chmod -R g+w dolibarr_src -``` +7. Create a link to the dolibarr custom directory (where you should put your modules): +- `ln -s dolibarr_src/htdocs/custom/ src` +8. Set some basic rights for the installer to run : + +- `sudo chown -R $(whoami):33 dolibarr_src` +- `sudo chmod -R g+w dolibarr_src` + 9. Configuration of dolibarr with web interface (see below for database configuration) +Go to [http://localhost:8080/](http://localhost:8080/) or your production instance and start configuration +  +Setup following fields : + +- Serveur de base de données : in dev mariadb +- Identifiant `dolibarr` +- Mot de passe : Password from `PASS` variable in your .env + + 10. Fix permissions `./doli perms` ## Databases (For developpement) diff --git a/config.png b/config.png index d379e2a8dbfed32e86efdf62f1d06b471a59131e..27b3e5927848efeac6d4e92ba32d7bcecf9e49ef 100644 Binary files a/config.png and b/config.png differ