-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't connect to mysql/postgres #103
Comments
ok
i ued the subnet on the
in the docker-compose and the gateway in the database url in the traccar.xml beyond that i had to use the official traccar debian arm64 image for my raspberrypi 400 so i can have the traccar web interface i tried the images from dockerhub before and they threw errors and last i would like to suggest to provide an "official" docker-compose for completely dockerised spinups i'll leave "mine" here for reference
thanks and keep up |
I'll re open this as it looks like traccar doesnot want to use postgres So I managed to start the 2 images without errors and thought all was OK But when I And when I So traccar still uses h2 The mounted data volume does not contain any db files though and it makes.no diference if I mount traccar/data volume or not Also I read similar issues that contain "fixes" like decompile>edit>recompile. Jar files Creating tables scripts etc The traccar documentation for psql |
Ok
Traccar is up and running and /opt/traccar/data is empty so I guess it uses the mariadb |
i use traccar client on android and running the server on a raspberrypi400
long story short : i used docker-compose and had my embedded H2 database volume maped on a host dir. db got corrupted so i tried to switch to porttgres or mysql with no luck
my dockerr-compose.yml
my traccar.xml
docker-compose up
throws errori tried my host ip "192.168.1.24" instead of hostname of my mysql service in this case "mariadb" in the docker-compose.yml
also localhost does not work
i tried to follow this
https://www.traccar.org/forums/topic/traccar-is-not-connecting-to-mysql-in-docker-compose-setup/
also tried commenting "skip networking" with
docker exec -it mariadb-traccar nano /etc/my.cnf.d/mariadb-server.cnf
according to this
https://www.traccar.org/forums/topic/traccar-accessing-remote-database/#post-54192
all without luck
so
what would be a proper mysqlurl for a mariadb container and whatt would be the propper enviromental variables for docker-compose to spin up traccar?
The text was updated successfully, but these errors were encountered: