Without this there would be an error connecting to the webpage, resulting in an empty tracking map. In order to forward all the https traphic to the exposed port 6080, I created the following nginx configuration.Īs the traccar webclient used websockets, some additional websocket support had to be addited. The configuration of the traccar file was changed to support connecting to a MySQL database outside a docker environment traccar.xml configuration file After starting, this is the running configuration Nginx configuration In order to get the traccar.xml file, I followed the guide on traccar/traccar-docker: Traccar Docker () v /home/traccar/traccar.xml:/opt/traccar/conf/traccar.xml:ro \ Recent versions of the Traccar installer also include a systemd service configuration. I installed Traccar on an Ubuntu 16.04 (systemd). This installs Traccar and a java runtime to /opt/traccar. v /home/traccar/logs:/opt/traccar/logs:rw \ Extract the archive and run the install script. I created a startup docker file that contains the following, it now exposed 2 portsĦ080 for the admin webpage, that will be mounted to localhost, next is that nginx will use thatħ070 that forwards to the ingestion for the traccar mobile client, I want this to be SSL as well in order to have secure communication docker run \ Within DirectAdmin setting up the Let’s Encrypt certificate Docker environment and configuration Change nginx config to also support SSL on the 5055 traccar port for ingestion.Configure Let’s Encrypt for the SSL certificate.Setup the docker environment and configure it Installation - Traccar Installation Recommended Install on VPS Windows Installation Linux Installation Docker Image Manual Installation Other Following instructions are not officially supported and can contain outdated or incorrect information.Create a MySQL database to host the data in.Setup a hosting account within DirectAdmin.Steps completed to host this environment: The end webpage of traccar on my environment Searching the webs, I found what appeared to be the best solution. For a while I was looking for a way to track my car’s whereabouts (nice word!) In order to do so, I started by looking how to have a server environment ready to capture and display this information, as it was clear I didn’t want to create a serverside solution by myself for this.
0 Comments
Leave a Reply. |