You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
2.2 KiB

3 years ago
  1. # docker_kimai
  2. this repo deploys kimai in a docker container
  3. **HINT:** for this version you need a dedicated mysql database! (e.g. mariadb)
  4. how to use:
  5. 1. clone this repo via https to your server where you want to deploy kimai.
  6. 2. go in the folder, start the setup script and follow the instructions.
  7. 3. kimai should run now!
  8. ### Setup script
  9. At the beginning you can enter a project name suffix. (e.g. `prod` or `dev`)
  10. - The setup script creates a container with the name `kimai_DATETIMENOW_core_SUFFIX` and stack `kimai_DATETIMENOW_SUFFIX`.
  11. The setup script search for a `config` file.
  12. - If this file exists, you can select the parameters from it.
  13. - If this file does not exist or you do not want to use it, the script will ask you the following parameters: (an existing `config` file will be deleted!)
  14. - Kimai docker version. (e.g. `apache-1.14.3-prod`)
  15. - IP address from the docker host (e.g. the vm) on which kimai should be accessible.
  16. - Port from the docker host (e.g. the vm) on which kimai should be accessible.
  17. - The public url from which kimai should be accessible. (e.g. `kimai.mydomain.com`)
  18. - This will be added to the trusted hosts
  19. - Mail address from `superadmin`. (not relevant for existing databases)
  20. - Password for `superadmin`. (not relevant for existing databases)
  21. - Database connection:
  22. - Host (ip or hostname)
  23. - Port (standard is `3306`)
  24. - Database name
  25. - User name
  26. - User password
  27. All entered parameters (excluding the project name suffix) can be saved in the `config`file.
  28. After that the setup script search for a `kimai_config/local.yaml` file.
  29. - If this file exists, you can select the parameters from it.
  30. - If this file does not exist or you do not want to use it, the script will ask you the following parameters: (an existing `kimai_config/local.yaml` file will be deleted!)
  31. - You can disable self-registration and password reset by email on the login screen.
  32. - You can set the session lifetime to 24 hours. (default is 24 minutes)
  33. All options will be saved in the `kimai_config/local.yaml` file.
  34. You can read more configuration options on the [official website](https://www.kimai.org/documentation/local-yaml.html).