tobybatch / kimai2

Docker containers for the kimai2 web application including docker-compose and kubernetes/helm deployment.
MIT License
183 stars 96 forks source link

Unable to use mysql #28

Closed lpmartineau closed 4 years ago

lpmartineau commented 4 years ago

Hello, Thank you for this tool. I really like it and it will come in handy!

I am having an issue using mysql. I started by cloning your git repo and ran the following:

docker build -t kimai/kimai2:prod --build-arg "TAG=1.0" --rm tags/1.0

In my docker-compose I have: DATABASE_URL: mysql://kimai:SimpleTestPassword@mysql/kimai

But when I bring things up with docker-compose up I see: kimai_1 | DATABASE_URL = sqlite:///%kernel.project_dir%/var/data/kimai.sqlite kimai_1 | Using non mysql DB

Any ideas?

Thank you.

lpmartineau commented 4 years ago

I found my issue. I had 2x environment: sections. Works fine now.