Raspberry PI – Guide to installing Leantime docker

shell instructions as follows:

Initial Docker configuration:

docker network create --subnet=172.18.0.0/16 --gateway=172.18.0.1 netlean
docker run -d --name leantime --network=netlean --ip=172.18.0.4 --restart=unless-stopped -p 80:80 leantime/leantime:latest
docker run -d --name leanmysql --network=netlean --ip=172.18.0.5 --restart=unless-stopped -p 3306:3306 -e MYSQL_ROOT_PASSWORD=thepassword mysql:latest

MYSQL container image config updates:

mysql -u root -p
CREATE DATABASE leantime;
CREATE USER 'dbuser'@'%' IDENTIFIED BY 'thedbpassword';
GRANT ALL PRIVILEGES ON leantime.* TO 'dbuser'@'%';
FLUSH PRIVILEGES;
QUIT;

Leantime container image config updates:

Edit the configuration.php in the config folder with the following changes

/* Database */
public $dbHost = '172.18.0.5'; //Database host
public $dbUser = 'dbuser'; //Database username
public $dbPassword = 'thedbpassword'; //Database password
public $dbDatabase = 'leantime'; //Database name
public $dbPort = '3306'; //Database port

Leave a comment