nuxsmin / docker-syspass

Docker stuff for running sysPass on Docker
GNU General Public License v3.0
39 stars 21 forks source link

Mariadb user account #6

Closed disanvparean closed 7 years ago

disanvparean commented 7 years ago

Hello, Thank you for syspass, it's really great. I would like to submit a bug I encountered. I use a mariadb container with syspass. The mariadb user account created during install creates privileges and the server indicated is ip address (which can change on docker) or hostname (on docker it's the container ID which changes everytime the container is recreated). So it was impossible to me to connect to mariadb database when both cases happened (IP and hostname changed). I had to create a new user using "%" as server. I don't know if it's easier to change install script or maybe indicate users to use "hostname" docker option so hostname will remain the same when the container is recreated. I hope it's not too complicated to understand. I'm not an english native :-/ Thank you

nuxsmin commented 7 years ago

Hello @disanvparean , you're right, docker does assign an IP address through DHCP every time the container is started, so you can either link both containers or use the docker compose file provided, so each container can be referenced by its hostname.

Thanks for the feedback!!

No worries...I'm not a native English too ;)