Skip to content
Snippets Groups Projects
Select Git revision
  • 82672212f9670a1725e5370b7438cac67d5d684a
  • master default protected
  • doli-script-update
  • add-info-cli
  • improve_doli_logs
  • nullmailer
  • 79-expedition-de-mails-depuis-nos-instances-dolibarr
  • 4-mettre-a-jour-le-fichier-env-sample
  • sso
  • donation-form
  • 7-agenda
11 results

dolibarr

  • Clone with SSH
  • Clone with HTTPS
  • This repo should remain private

    Setting up your environement

    1. Clone this repository
    2. If required change dolibarr version in docker-compose file
    3. cp .env.sample .env
    4. Edit .env (change DB password)
    5. docker-compose up
    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. sudo chown -R $(whoami):33 src/ to have the right to write your source files

    Databases (For developpement)

    There is a dumps/ directory in this repository holding dumps from dev the instances of Dolibarr we use

    There is a dump from a database used for internal developpements. You can import it by running:

    docker exec -i $(docker-compose ps -q mariadb) mysql -uroot -p'password-from.env' < dump.sql

    You must set your mysql password to 7rU2//B7XEe[UrnPs6bPOWu[c]#}I>K- after importing this dump

    Troubleshooting

    Cannot write my source files or cannot run git command on src/

    The docker container reset the ownership of src/ to www-data (id 33), so you should run sudo chown -R $(whoami):33 src/ to regain access