docker-compose pull
docker-compose build
Set KIMAI_PASSWORD_SALT
:
cat <<EOF > .env
KIMAI_PASSWORD_SALT=changeme
EOF
Start the containers:
docker-compose up
Open http://kimai.s3.localhost/. Default DB credentials:
- Host:
mysql
- User:
kimai
- Pass:
kimai
- DB:
kimai
Remove the installer:
docker-compose run --rm --entrypoint= fpm rm -rf installer
See MAINTENANCE.md
Check your backups:
ls -l /var/backups/kimai/autoconf.php
ls -l /var/backups/kimai/db.sql
grep password_salt /var/backups/kimai/autoconf.php
vi .env
# start mysql
docker-compose up -d mysql && docker-compose logs -f mysql
# give it a minute to start up, then load the dump
cat /var/backups/kimai/db.sql | docker-compose exec -T mysql mysql -ukimai -pkimai kimai
docker-compose exec mysql mysql -ukimai -pkimai kimai -e 'show tables'
docker-compose up -d
Go to http://kimai.s3.localhost/ and click "START UPDATE".
docker-compose run --rm --entrypoint= fpm rm -rf installer
docker-compose exec mysql mysqldump -ukimai -pkimai kimai > /var/backups/kimai/db.$(date +%F_%H-%M).sql