Describe the bug
I use kimai (Version 1.24.0 prod) with docker-compose; Kimai is accessed via ProxyPass/ProxyPassReverse with Apache2.
To make the update to Version 2.2.1 prod, I changed only the Image in docker-compose.yml.
In the Result, I could login in the new Kimai version (using url http://domain/kimai).
However, there was a problem with the menu buttons:
Emplyment contract
Invoices
Administration
System
These buttons do not work.
And the small Icons belong to the menu buttons are not visible.
This error is reproducible in a local area with the following description.
To Reproduce
Create the file .env, with the content you can see below
Start the container via docker-compose.yml below and with the image kimai2:apache-1.24.0-prod.
Create the kimai Admin User
Copy (with docker cp) the directory /opt/kimai/public in the local place. Rename the new created dircetory public in kimai. Create the directory html and move the directory kimai inside them. The owner must be www-data.
Stop the container and comment out the following lines in docker-compose.yml:
**volumes:
./html/kimai:/opt/kimai/public**
Start the container again (if the user has not been saved, it must be recreated)
Go inside the container
docker exec -it kimai_old bash
and create the following symbolic link:
ln -s /opt/kimai/public /opt/kimai/public/kimai (owner must be www-data)
Be aware that apache2 works with proxyreverse,
and add the following section in
/etc/apache2/sites-enabled/default-ssl.conf
Now you can start kimai via the IP-Address
http://IP-Address:30405
or via your own local domain
http://test-server-ubuntu.intranet/kimai
In the result Kimai Version 1.24.0 appears and it works good, without any problems.
No matter in which way kimai was called.
Shut down the container and change the image (from 1.24.0 to 2.2.1) in the docker-compose.yml
Start the container again.
Now you can start kimai via the IP-Address
http://IP-Address:30405
or via your own local domain
http://test-server-ubuntu.intranet/kimai
Starting with the IP-Address the Kimai Version 2.2.1 works good and without any problems.
Starting with your own local domain, you can login, but you can not use the buttons (all without icons):
Emplyment contract
Invoices
Administration
System
Desktop (please complete the following information):
OS: Ubuntu 20.04.6 LTS
docker version: 24.0.7, build afdd53b
docker-comopose version: 1.25.0
Files docker-compose.yml and .env
docker-compose.yml
Additional context
To reproduce this error, you must not install kimai 1.24.0 at first.
You can directly create a new Kimai version.
Then you must call Kimai via http://domain/kimai
Important is a correct working ProxyPass Apache2 Server and a Symbolic Link as mentioned above.
When you start Kimai in dev-Mode via IP-Address than Kimai shows several debug-options.
If you start Kimai in dev-Mode via http://domain/kimai these debug-options are not appears.
Describe the bug I use kimai (Version 1.24.0 prod) with docker-compose; Kimai is accessed via ProxyPass/ProxyPassReverse with Apache2. To make the update to Version 2.2.1 prod, I changed only the Image in docker-compose.yml. In the Result, I could login in the new Kimai version (using url http://domain/kimai). However, there was a problem with the menu buttons:
These buttons do not work. And the small Icons belong to the menu buttons are not visible. This error is reproducible in a local area with the following description.
To Reproduce
Hint: use you own local domain.
Desktop (please complete the following information):
Files docker-compose.yml and .env docker-compose.yml
.env
Additional context To reproduce this error, you must not install kimai 1.24.0 at first. You can directly create a new Kimai version. Then you must call Kimai via http://domain/kimai Important is a correct working ProxyPass Apache2 Server and a Symbolic Link as mentioned above.
When you start Kimai in dev-Mode via IP-Address than Kimai shows several debug-options.
If you start Kimai in dev-Mode via http://domain/kimai these debug-options are not appears.
Can anyone help me ?