{"id":1138,"date":"2023-12-22T15:50:35","date_gmt":"2023-12-22T14:50:35","guid":{"rendered":"https:\/\/chochol.io\/smart-home\/traccar-configuring-gps-communication-in-docker\/"},"modified":"2025-08-23T19:49:27","modified_gmt":"2025-08-23T17:49:27","slug":"traccar-configuring-gps-communication-in-docker","status":"publish","type":"post","link":"https:\/\/chochol.io\/en\/software\/traccar-configuring-gps-communication-in-docker\/","title":{"rendered":"Traccar: Configuring GPS communication in Docker"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"1138\" class=\"elementor elementor-1138 elementor-688\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-57ce285 e-flex e-con-boxed e-con e-parent\" data-id=\"57ce285\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-cf7691c elementor-toc--minimized-on-tablet elementor-widget elementor-widget-table-of-contents\" data-id=\"cf7691c\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;exclude_headings_by_selector&quot;:[],&quot;no_headings_message&quot;:&quot;No headings were found on this page.&quot;,&quot;headings_by_tags&quot;:[&quot;h2&quot;,&quot;h3&quot;,&quot;h4&quot;,&quot;h5&quot;,&quot;h6&quot;],&quot;marker_view&quot;:&quot;numbers&quot;,&quot;minimize_box&quot;:&quot;yes&quot;,&quot;minimized_on&quot;:&quot;tablet&quot;,&quot;hierarchical_view&quot;:&quot;yes&quot;,&quot;min_height&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_tablet&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]},&quot;min_height_mobile&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:&quot;&quot;,&quot;sizes&quot;:[]}}\" data-widget_type=\"table-of-contents.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__header\">\n\t\t\t\t\t\t<div class=\"elementor-toc__header-title\">\n\t\t\t\tTable of contents\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--expand\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__cf7691c\" aria-expanded=\"true\" aria-label=\"Open table of contents\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-down\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z\"><\/path><\/svg><\/div>\n\t\t\t\t<div class=\"elementor-toc__toggle-button elementor-toc__toggle-button--collapse\" role=\"button\" tabindex=\"0\" aria-controls=\"elementor-toc__cf7691c\" aria-expanded=\"true\" aria-label=\"Close table of contents\"><svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-chevron-up\" viewBox=\"0 0 448 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z\"><\/path><\/svg><\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<div id=\"elementor-toc__cf7691c\" class=\"elementor-toc__body\">\n\t\t\t<div class=\"elementor-toc__spinner-container\">\n\t\t\t\t<svg class=\"elementor-toc__spinner eicon-animation-spin e-font-icon-svg e-eicon-loading\" aria-hidden=\"true\" viewBox=\"0 0 1000 1000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M500 975V858C696 858 858 696 858 500S696 142 500 142 142 304 142 500H25C25 237 238 25 500 25S975 237 975 500 763 975 500 975Z\"><\/path><\/svg>\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d30d199 elementor-widget elementor-widget-text-editor\" data-id=\"d30d199\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Hello!<\/h2><p>In the previous guide, I discussed installing <strong>Traccar<\/strong> on a Synology server using Docker Compose. Nevertheless, we have not yet configured the reception of GPS data. In this simple step, I&#8217;ll show how to do it, using the example of a GPS device from <a href=\"https:\/\/teltonika-gps.com\" target=\"_blank\" rel=\"noopener\">Teltonika<\/a>.<\/p><h3><img decoding=\"async\" class=\"alignleft wp-image-593 size-thumbnail\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/zd84jqywtibsycfpfqsl-150x150.webp\" sizes=\"(max-width: 150px) 100vw, 150px\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/zd84jqywtibsycfpfqsl-150x150.webp 150w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/zd84jqywtibsycfpfqsl-60x60.webp 60w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/zd84jqywtibsycfpfqsl.webp 256w\" alt=\"Guide to installing Traccar on Synology in Docker\" width=\"150\" height=\"150\" \/>What is Traccar?<\/h3><p><strong>Traccar<\/strong> is an open-source vehicle tracking tool for monitoring and managing fleets. It works on the principle of a GPS server, collecting data from GPS devices and other sensors, and then presents this information in a web-based interface. Traccar allows you to track the location of vehicles in real time, analyze route history, monitor fuel consumption and other parameters.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9e3e2df elementor-alert-info elementor-widget elementor-widget-alert\" data-id=\"9e3e2df\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"alert.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-alert\" role=\"alert\">\n\n\t\t\t\t\t\t<span class=\"elementor-alert-title\">Information<\/span>\n\t\t\t\n\t\t\t\t\t\t<span class=\"elementor-alert-description\"><p>The following tutorial was created based on version: Traccar 5.10.<\/p>\n<\/span>\n\t\t\t\n\t\t\t\t\t\t<button type=\"button\" class=\"elementor-alert-dismiss\" aria-label=\"Dismiss this alert.\">\n\t\t\t\t\t\t\t\t\t<span aria-hidden=\"true\">&times;<\/span>\n\t\t\t\t\t\t\t<\/button>\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e6e69e2 elementor-widget elementor-widget-text-editor\" data-id=\"e6e69e2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2>Preparation<\/h2><p>In order to prepare the tutorial, we have already adopted a predetermined domain name and certain configuration names, shown below. For customized configuration, adjust the settings according to individual requirements.<\/p><ul><li>Full domain name (FQDN) of Traccar: <strong>https:\/\/traccar.xyz.com<\/strong><\/li><li><strong>Public IP address<\/strong> or configured public domain name with the operator with whom you registered your domain.<\/li><\/ul><h2>Step 1 &#8211; Configure the server via Docker Compose in the Portainer<\/h2><p>Do you already have a server configured on your Synology device? If not, <a href=\"https:\/\/chochol.io\/en\/software\/traccar-docker-installation-guide-on-synology\/\">read this article<\/a> to prepare your server, then return here to continue with further configuration.<\/p><h2>Step 2 &#8211; Check the Traccar server documentation<\/h2><p>To start the setup, <strong>check which port your GPS is communicating on<\/strong>. As part of the following instruction, we will use an example <a href=\"https:\/\/teltonika-gps.com\/products\/trackers\/fmc003\" target=\"_blank\" rel=\"noopener\">Teltonika device model FMC003<\/a>, which communicates on <strong>port 5027<\/strong>.<\/p><p>Check the list of supported devices on the <a href=\"https:\/\/www.traccar.org\/devices\/\" target=\"_blank\" rel=\"noopener\">official technical documentation page<\/a><\/p><p><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-693 size-large\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-12.57.46-1024x414.png\" alt=\"List of devices supported by Traccar\" width=\"1024\" height=\"414\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-12.57.46-1024x414.png 1024w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-12.57.46-300x121.png 300w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-12.57.46-768x310.png 768w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-12.57.46.png 1158w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><h2>Step 3 &#8211; Set up redirection on your router<\/h2><p>In order for the GPS to properly transmit data to the server, it is necessary to <strong>allow the port to be accepted<\/strong> and to <strong>specify to which address within your LAN it should be directed<\/strong>.<\/p><h3>For example, on a <a href=\"https:\/\/mikrotik.com\" target=\"_blank\" rel=\"noopener\">Mikrotik<\/a> router:<\/h3><ul><li>Start <strong>WinBox<\/strong> and log in to your administrator account,<\/li><li>Go to the <strong>IP<\/strong> tab, then select <strong>Firewall<\/strong> from the menu.<\/li><\/ul><p><img decoding=\"async\" class=\"size-full wp-image-694 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.04.05.png\" alt=\"Mikrotik WinBox\" width=\"272\" height=\"197\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.04.05.png 272w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.04.05-110x80.png 110w\" sizes=\"(max-width: 272px) 100vw, 272px\" \/><\/p><ul><li>Click the <strong>NAT<\/strong> tab<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-695 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.05.05.png\" alt=\"Mikrotik WinBox, Firewall\" width=\"517\" height=\"86\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.05.05.png 517w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.05.05-300x50.png 300w\" sizes=\"(max-width: 517px) 100vw, 517px\" \/><\/p><ul><li>Click on the <strong>+<\/strong> sign in the upper left corner of the window to add a new redirection policy.<\/li><li>On the <strong>General<\/strong> tab, set the parameters described below:<ul><li>Chain: <strong>dstnat<\/strong><\/li><li>Protocol: <strong>6 (tcp)<\/strong><\/li><li>Dst. Port: <strong>5027<\/strong><\/li><li>In. Interface List: <strong>WAN<\/strong> or In. Interface: Select your WAN interface (usually ether01).<\/li><\/ul><\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-697 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.07.27.png\" alt=\"WinBox NAT configuration\" width=\"687\" height=\"699\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.07.27.png 687w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.07.27-295x300.png 295w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.07.27-60x60.png 60w\" sizes=\"(max-width: 687px) 100vw, 687px\" \/><\/p><ul><li>Go to the <strong>Action<\/strong> tab and set the parameters described below:<ul><li>Action: <strong>dst-nat<\/strong><\/li><li><em>(Optional)<\/em> Select <strong>Log<\/strong>, in Log Prefix: enter <strong>[GPS]<\/strong><\/li><li>To Addresses: <strong>IP-ADDRESS-SYNOLOGY<\/strong><\/li><li>To Ports: <strong>5027<\/strong><\/li><\/ul><\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-698 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.09.22.png\" alt=\"WinBox NAT configuration\" width=\"684\" height=\"298\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.09.22.png 684w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-13.09.22-300x131.png 300w\" sizes=\"(max-width: 684px) 100vw, 684px\" \/><\/p><h2>Step 4 &#8211; Set up the firewall on the Synology<\/h2>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-256453a elementor-alert-info elementor-widget elementor-widget-alert\" data-id=\"256453a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"alert.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-alert\" role=\"alert\">\n\n\t\t\t\t\t\t<span class=\"elementor-alert-title\">Information<\/span>\n\t\t\t\n\t\t\t\t\t\t<span class=\"elementor-alert-description\"><p>If you don't have a firewall setup on your Synology, this step can be skipped.<\/p>\n<\/span>\n\t\t\t\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-68542c0 elementor-widget elementor-widget-text-editor\" data-id=\"68542c0\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>The packets must pass through <strong>Synology&#8217;s<\/strong> internal firewall to reach the server seamlessly. Once the Mikrotik is configured with NAT, the packets already know where they are supposed to go.<\/p><ul><li>Log in to your file server and open the <strong>Control Panel<\/strong>.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-702 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.45.12.png\" alt=\"Synology Control Panel\" width=\"132\" height=\"103\" \/><\/p><ul><li>Go to the <strong>Security<\/strong> section, then click on the <strong>Firewall<\/strong> tab.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-703 size-large\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.46.33-1024x671.png\" alt=\"Synology Firewall\" width=\"1024\" height=\"671\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.46.33-1024x671.png 1024w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.46.33-300x197.png 300w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.46.33-768x503.png 768w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.46.33.png 1146w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><ul><li>Go to edit <strong>Firewall Profile rules<\/strong> and in the newly opened window click <strong>Create<\/strong> a new firewall rule.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-704 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.56.23.png\" alt=\"Edit the firewall\" width=\"433\" height=\"175\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.56.23.png 433w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.56.23-300x121.png 300w\" sizes=\"(max-width: 433px) 100vw, 433px\" \/><\/p><ul><li>In the newly opened window for creating a firewall rule, set the parameters described below:<ul><li>Type: <strong>Destination port<\/strong><\/li><li>Protocol: <strong>TCP<\/strong><\/li><li>Ports (separate with commas): <strong>5027<\/strong><\/li><\/ul><\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-705 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.58.34.png\" alt=\"Adding a port to the Synology firewall\" width=\"622\" height=\"541\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.58.34.png 622w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-15.58.34-300x261.png 300w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/p><ul><li>Save the configuration by clicking <strong>OK<\/strong> in the open windows. On exiting firewall rule editing, you will receive a message that the firewall settings have been saved successfully.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-706 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.00.27.png\" alt=\"Successfully saved settings \" width=\"478\" height=\"117\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.00.27.png 478w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.00.27-300x73.png 300w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/p><h2>Step 5 &#8211; Set the additional port of the created Docker Compose in the Portainer<\/h2><ul><li>Log in to your account and go to the administration interface.<ul><li>Are you using the <strong>Authentik<\/strong> single sign-on system? Make the login process easier for yourself by integrating Portainer with Authentik with the help of <a href=\"https:\/\/chochol.io\/en\/software\/authentik-single-sign-on-configuration-for-portainer\/\">these instructions<\/a>.<\/li><\/ul><\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-707 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.03.02.png\" alt=\"Portainer login screen\" width=\"613\" height=\"479\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.03.02.png 613w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.03.02-300x234.png 300w\" sizes=\"(max-width: 613px) 100vw, 613px\" \/><\/p><ul><li>Select your environment (eng: <strong>Environments<\/strong>) in which you will edit the configuration of the created <strong>Docker Compose<\/strong>. Then go to <strong>Stacks<\/strong> and select the created Stacks named <strong>traccar<\/strong>.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-708 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.05.37.png\" alt=\"Docker Compose in the Portainer\" width=\"637\" height=\"202\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.05.37.png 637w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.05.37-300x95.png 300w\" sizes=\"(max-width: 637px) 100vw, 637px\" \/><\/p><ul><li>At the top under <strong>Stack details<\/strong>, go to <strong>Editor<\/strong>.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-709 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.06.31.png\" alt=\"Stack details in the Portainer\" width=\"537\" height=\"247\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.06.31.png 537w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-21-at-16.06.31-300x138.png 300w\" sizes=\"(max-width: 537px) 100vw, 537px\" \/><\/p><ul><li>In the Docker Compose editor, in the <strong>Traccar<\/strong> server section, find the <strong>ports<\/strong> definition and add a new port according to the following example:<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6fba43e elementor-widget elementor-widget-mdp-coder-elementor\" data-id=\"6fba43e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"mdp-coder-elementor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t        <!-- Start Coder for Elementor WordPress Plugin -->\n        <div\n            id=\"mdp-coder-6fba43e\"\n            class=\"mdp-coder-elementor-box\"\n            data-theme=\"mdp-theme-material-dark\"\n            data-dark-theme=\"mdp-theme-material-dark\"\n        >\n            \n                <pre class=\"language-yaml line-numbers copy-to-clipboard\"data-line=\"3\"data-previewers=\"\"><code>ports:\n      - &quot;8082:8082&quot;\n      - &quot;5027:5027&quot;<\/code><\/pre>\n                    <\/div>\n                <script>\n            \"use strict\";\n\n            \/** Handler when the DOM is fully loaded. *\/\n            let callback_6fba43e = function() {\n\n                \/** Set theme for coder widget. *\/\n                function setTheme() {\n\n                    \/** Foreach Code Widget. *\/\n                    let coderBoxes = document.querySelectorAll( '.mdp-coder-elementor-box' );\n\n                    for ( let coderBox of coderBoxes ) {\n\n                        let lightTheme = coderBox.dataset.theme;\n                        let darkTheme = coderBox.dataset.darkTheme;\n\n                        coderBox.className = '';\n                        if ( window.matchMedia && window.matchMedia( '(prefers-color-scheme: dark)' ).matches ) {\n\n                            coderBox.className = 'mdp-coder-elementor-box ' + darkTheme;\n\n                        } else {\n\n                            coderBox.className = 'mdp-coder-elementor-box ' + lightTheme;\n\n                        }\n\n                    }\n\n                }\n                setTheme();\n\n\n                \/** Watch for changes color-scheme. *\/\n                window.matchMedia(\"(prefers-color-scheme: dark)\").addListener( function() {\n                    setTheme();\n                } );\n\n                \n                if ( typeof Prism !== 'undefined' ) {\n\n                    Prism.plugins.autoloader.languages_path = 'https:\/\/chochol.io\/wp-content\/plugins\/coder-elementor\/js\/prism\/components\/';\n                    Prism.highlightAll();\n                    Prism.fileHighlight();\n\n                }\n\n                \n            };\n\n            if (\n                document.readyState === \"complete\" ||\n                ( document.readyState !== \"loading\" && !document.documentElement.doScroll )\n            ) {\n                callback_6fba43e();\n            } else {\n                document.addEventListener( \"DOMContentLoaded\", callback_6fba43e );\n            }\n\n        <\/script>\n                <!-- End Coder for Elementor WordPress Plugin -->\n\n        \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-39c70fa elementor-widget elementor-widget-text-editor\" data-id=\"39c70fa\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Click <strong>Update the stack<\/strong> and wait for the Portainer to update the content.<\/li><li>If everything goes successfully, the message <strong>Success: Stack successfully deployed<\/strong> will appear in the upper right corner of the screen.<\/li><\/ul><h2>Step 6a &#8211; Selecting the SIM card for telemetry<\/h2><p>In order to ensure the proper functioning of our GPS system, it will be necessary to obtain a SIM card. High data transfer is not required, so truthfully, buying a SIM card with Internet access for 30-40 PLN per month with a limit of, say, a 10 GB data package would be overkill. After testing, I found a virtual operator, <a href=\"https:\/\/1nce.com\/en-eu\/\" target=\"_blank\" rel=\"noopener\">1nce<\/a>, that allows you to purchase a SIM card for telemetry applications for <strong>10 euros<\/strong>.<\/p><ul><li>First &#8211; The validity of such a card is <strong>10 years<\/strong>,<\/li><li>Second &#8211; <strong>500 MB<\/strong> Internet access package<\/li><li>Third &#8211; <strong>250 SMS<\/strong> packet.<\/li><li>Fourth &#8211; the card has the <strong>ability to operate in<\/strong> <a href=\"https:\/\/1nce.com\/en-eu\/1nce-connect\/our-coverage\" target=\"_blank\" rel=\"noopener\">165 countries<\/a>.<\/li><\/ul><p>The card arrived just three days after I ordered it from the operator&#8217;s website. At the moment I notice that the average monthly consumption is in the range of <strong>5 MB to 8 MB<\/strong>.<br \/><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-722 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.41.21.png\" alt=\"Data Usage in MB 1nce\" width=\"768\" height=\"514\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.41.21.png 768w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.41.21-300x201.png 300w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.41.21-550x367.png 550w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/p><h2>Step 6b &#8211; Configure the parameters of the GPS device<\/h2><p>If you already have a SIM card that you will use for GPS &#8211; then you can move on to further configuration. To set the parameters of our GPS from Teltonika, we need the <strong>Teltonika Configurator<\/strong> program, which we download from the manufacturer&#8217;s website <a href=\"https:\/\/wiki.teltonika-gps.com\/view\/Teltonika_Configurator_versions\" target=\"_blank\" rel=\"noopener\">at this link<\/a>.<\/p><p>At the outset of the manual, I indicated that within the following guidelines, we will be using an example <a href=\"https:\/\/teltonika-gps.com\/products\/trackers\/fmc003\" target=\"_blank\" rel=\"noopener\">Teltonika device model FMC003<\/a>, which establishes communication on port <strong>5027<\/strong>.<\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-720 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.17.34-1024x769.png\" alt=\"Teltonika Configurator versions\" width=\"1024\" height=\"769\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.17.34-1024x769.png 1024w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.17.34-300x225.png 300w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.17.34-768x577.png 768w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.17.34.png 1190w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><p>Unfortunately, Teltonika Configurator is only available for Windows operating systems. To use the program on macOS systems, you will need to use virtualization tools such as <a href=\"https:\/\/www.parallels.com\/eu\/\" target=\"_blank\" rel=\"noopener\">Parralels Desktop<\/a> or other software to run virtual operating systems.<\/p><ul><li>After visiting a website that provides various versions of GPS configuration software, <strong>select your device<\/strong> from the available list and <strong>download the appropriate software<\/strong> to your Windows computer. In the case of our <strong>FMC003<\/strong> model, we are using configurator version <a href=\"https:\/\/wiki.teltonika-gps.com\/view\/Special:Redirect\/file\/Teltonika.Configurator_1.7.53_E.FMX00X_R.6.zip\" target=\"_blank\" rel=\"noopener\">1.7.53_E.FMX00X_R.6<\/a>, consistent with the data available on the date of this guide.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-721 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.20.50-1024x163.png\" alt=\"FMC003 Teltonika Configurator\" width=\"1024\" height=\"163\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.20.50-1024x163.png 1024w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.20.50-300x48.png 300w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.20.50-768x122.png 768w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-14.20.50.png 1176w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><p>The configurator is a comprehensive tool that allows you to configure the device, both when it is immediately connected to a computer and when you create or adjust the configuration without physically connecting to the device. In each case, there is an option to create a new configuration or open an existing configuration file.<\/p><ul><li>Before running the software on your computer, first connect your device with a USB cable.<\/li><li>After selecting your device from the initial screen, continue by going to the GPRS tab. Then, in the <strong>Server Settings<\/strong> section, enter the following data:<ul><li>Domain: <strong>PUBLIC-ADDRESS-IP<\/strong><\/li><li>Port: <strong>5027<\/strong><\/li><li>Protocol: <strong>TCP<\/strong><\/li><li>TLS Encryption: <strong>None<\/strong><\/li><\/ul><\/li><li>If you are using the previously recommended SIM card from operator 1nce, you should additionally configure the <strong>GPRS Settings<\/strong> section:<ul><li>GPRS Context: <strong>Enable<\/strong><\/li><li>APN: <strong>iot.1nce.net<\/strong><\/li><li>APN Username: empty<\/li><li>APN Password: empty<\/li><li>GPRS Authentication: <strong>PAP<\/strong><\/li><\/ul><\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-723 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Untitled-1024x639.jpg\" alt=\"Teltonika Configurator\" width=\"1024\" height=\"639\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Untitled-1024x639.jpg 1024w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Untitled-300x187.jpg 300w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Untitled-768x479.jpg 768w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Untitled.jpg 1452w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p><ul><li>After adjusting your own settings on the GPS device, save the entered parameters by clicking <strong>Save to device<\/strong>. After the configurator confirms that the new configuration has been saved on the device, we can safely disconnect the USB cable from the GPS and plug it into the car.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-727 size-full\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-15.05.41-e1703254226602.png\" alt=\"Teltonika Configurator\" width=\"595\" height=\"69\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-15.05.41-e1703254226602.png 595w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-15.05.41-e1703254226602-300x35.png 300w\" sizes=\"(max-width: 595px) 100vw, 595px\" \/><\/p><h2>Step 7 &#8211; Add the device to the Traccar server<\/h2><ul><li>Log in to your account, then on the left side of the screen click the <strong>+<\/strong> icon to add a new device.<\/li><\/ul><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-729 aligncenter\" src=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-15.16.51.png\" alt=\"Traccar desktop\" width=\"348\" height=\"60\" srcset=\"https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-15.16.51.png 348w, https:\/\/chochol.io\/wp-content\/uploads\/2023\/12\/Screenshot-2023-12-22-at-15.16.51-300x52.png 300w\" sizes=\"(max-width: 348px) 100vw, 348px\" \/><\/p><ul><li>Fill in the blanks below using the following values:<ul><li><strong>Required<\/strong>:<ul><li>Name: <strong>Personal car<\/strong>,<\/li><li>Identifier: <strong>the IMEI of our GPS<\/strong> (you will find it on the housing of the device next to the serial number).<\/li><\/ul><\/li><li><strong>Extra <em>(optional)<\/em><\/strong>:<ul><li>Group: <strong>example Family cars<\/strong> (you must create earlier in the server settings),<\/li><li>Phone: <strong>example MSISDN SIM card<\/strong> rewritten from the 1nce administration panel,<\/li><li>Model: <strong>FMC003<\/strong>,<\/li><li>Contact: <strong>e.g., enter your name<\/strong><\/li><li>Category: <strong>Car<\/strong><\/li><li>Calendar: empty<\/li><li>Expiration: <strong>01\/01\/2099<\/strong><\/li><\/ul><\/li><li><strong>Device Image <em>(optional)<\/em>:<\/strong><ul><li>Upload a photo of your car<\/li><\/ul><\/li><li><strong>Attributes <em>(optional)<\/em>:<\/strong><ul><li>empty<\/li><\/ul><\/li><\/ul><\/li><li>To confirm the parameters you entered, click <strong>Save<\/strong>. Wait a while for the GPS to send messages to our server.<\/li><li><strong>Done!<\/strong> <strong>\ud83d\ude80<\/strong><\/li><\/ul><p>After successfully establishing a connection between our server and the remote GPS device installed in the car, we will be able to see its current position.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9e16e65 elementor-widget elementor-widget-text-editor\" data-id=\"9e16e65\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<h2><strong>Additional Sources and information:<\/strong><\/h2><ul><li>As of the date of writing the guide &#8211; Traccar <strong>does not support<\/strong> encrypted (SSL) connection between the GPS from Teltonics to the server (vide <a href=\"https:\/\/www.traccar.org\/forums\/topic\/can-anyone-confirm-if-ssltls-support-is-implemented-in-traccar-teltonika-protocol-implementation\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.traccar.org\/forums\/topic\/can-anyone-confirm-if-ssltls-support-is-implemented-in-traccar-teltonika-protocol-implementation\/<\/a> )<\/li><\/ul><p>For further exploration and more information, I recommend checking out the links below. They are valuable sources that were used in the development of this guide:<\/p><ul><li>Wiki Mikrotik, Firewall &#8211; NAT: <a href=\"https:\/\/help.mikrotik.com\/docs\/display\/ROS\/NAT\" target=\"_blank\" rel=\"noopener\">https:\/\/help.mikrotik.com\/docs\/display\/ROS\/NAT<\/a><\/li><li>Prices 1nce.com: <a href=\"https:\/\/1nce.com\/en-eu\/1nce-connect\/10-euros-for-10-years\" target=\"_blank\" rel=\"noopener\">https:\/\/1nce.com\/en-eu\/1nce-connect\/10-euros-for-10-years<\/a><\/li><li>Teltonika FMC003 device description: <a href=\"https:\/\/teltonika-gps.com\/products\/trackers\/fmc003\" target=\"_blank\" rel=\"noopener\">https:\/\/teltonika-gps.com\/products\/trackers\/fmc003<\/a><\/li><li>Wiki Teltonika FMC003: <a href=\"https:\/\/wiki.teltonika-gps.com\/view\/FMC003#Downloads\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.teltonika-gps.com\/view\/FMC003#Downloads<\/a><\/li><li>GPS tracker configurator: <a href=\"https:\/\/wiki.teltonika-gps.com\/view\/Teltonika_Configurator_versions\" target=\"_blank\" rel=\"noopener\">https:\/\/wiki.teltonika-gps.com\/view\/Teltonika_Configurator_versions<\/a><\/li><li>GPS tracker&#8217;s communication with the server: <a href=\"https:\/\/www.traccar.org\/forums\/topic\/teltonika-fmb9203\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.traccar.org\/forums\/topic\/teltonika-fmb9203\/<\/a><\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Step by step how to enable GPS communication with Traccar. Using Docker Compose, open ports for managing and receiving GPS data.<\/p>\n","protected":false},"author":1,"featured_media":998,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[103,121,123],"class_list":["post-1138","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","tag-docker-compose","tag-synology","tag-traccar"],"_links":{"self":[{"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/posts\/1138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/comments?post=1138"}],"version-history":[{"count":0,"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/posts\/1138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/media\/998"}],"wp:attachment":[{"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/media?parent=1138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/categories?post=1138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chochol.io\/en\/wp-json\/wp\/v2\/tags?post=1138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}