caprover / one-click-apps

Community Maintained One Click Apps (https://github.com/caprover/caprover)
Apache License 2.0
526 stars 513 forks source link

App Suggestion: [Traccar] #904

Open lamanrasmi opened 1 year ago

lamanrasmi commented 1 year ago

Please tell us what app you'd like to see on CapRover as a one-click app. https://www.traccar.org/ Opensource GPS Tracking app. x86 & arm compatible.

Do you know if there is any official Docker image for the app? https://github.com/traccar/traccar-docker

jacobburrell commented 1 week ago

I've ran this docker image just fine but the docker image isn't production-ready by default or even really good for testing since: The docker run command also doesn't create a mount point on the host for the data folder which will cause the database to be lost when the container is recreated. This point can be mitigated by adding the line -v /var/docker/traccar/data:/opt/traccar/data:rw \ after -v /var/docker/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro \ but it will still be using the H2 database.

For production ready, you need to manually set a DB:

The recommended solution for production use is to link to an external MySQL database and update the configuration .xml-file according to the [Traccar MySQL documentation](https://www.traccar.org/mysql/) and using the docker run command as-is.