{"id":25517593,"url":"https://github.com/inlustra/traccar-google-cloud-sql","last_synced_at":"2026-04-19T06:38:27.751Z","repository":{"id":149804361,"uuid":"539116279","full_name":"Inlustra/traccar-google-cloud-sql","owner":"Inlustra","description":"Traccar with built-in GCP Cloud SQL capabilities, for use on GCP Cloud Run","archived":false,"fork":false,"pushed_at":"2022-09-22T11:34:01.000Z","size":21312,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-21T04:10:02.202Z","etag":null,"topics":["cloud-sql","database","mysql","traccar","traccar-manager","traccar-server"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Inlustra.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-20T17:38:43.000Z","updated_at":"2022-10-10T14:02:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a81fdcd-3fcc-4225-a8b3-a1246c1c186d","html_url":"https://github.com/Inlustra/traccar-google-cloud-sql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Inlustra/traccar-google-cloud-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inlustra%2Ftraccar-google-cloud-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inlustra%2Ftraccar-google-cloud-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inlustra%2Ftraccar-google-cloud-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inlustra%2Ftraccar-google-cloud-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Inlustra","download_url":"https://codeload.github.com/Inlustra/traccar-google-cloud-sql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Inlustra%2Ftraccar-google-cloud-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016930,"owners_count":26085889,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloud-sql","database","mysql","traccar","traccar-manager","traccar-server"],"created_at":"2025-02-19T15:36:00.740Z","updated_at":"2025-10-13T19:41:13.897Z","avatar_url":"https://github.com/Inlustra.png","language":"Shell","readme":"# Traccar with built in Google Cloud SQL MySQL \u0026 Postgresql connectors\n\nPerfect for Cloud Run as the Traccar config file has been replaced with environment variables.\n\n[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run)\n\n## How to use\n\nYou can simply run the Docker image: `inlustra/traccar-google-cloud-sql` with the required env vars below.\n\nIt will default to the Google Cloud SQL MySQL connector, if you are using MySQL, the only env vars required are:\n\n- DATABASE_USERNAME\n- DATABASE_PASSWORD\n- DATABASE_NAME\n- CONNECTION_NAME\n\n## Possible environment variables:\n\n| Name                    | Description                                                                                                                                                                                                                                                                                                  | Required |\n| :---------------------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------- |\n| DATABASE_USERNAME       | Cloud SQL database user                                                                                                                                                                                                                                                                                      | true     |\n| DATABASE_PASSWORD       | Cloud SQL database password                                                                                                                                                                                                                                                                                  | true     |\n| DATABASE_NAME           | Cloud SQL database name                                                                                                                                                                                                                                                                                      | true     |\n| CONNECTION_NAME         | Go to your Cloud SQL page, create a database and copy the \u0026#x27;Connection Name\u0026#x27;, it looks something like: myproject:mylocation:mydbname                                                                                                                                                                          | true     |\n| DATABASE_TYPE           | Used to auto configure the advanced variables, supported options are: \u0026#x27;mysql\u0026#x27; (Default), \u0026#x27;postgresql\u0026#x27; or \u0026#x27;custom\u0026#x27; (Advanced)                                                                                                                                                                                 | false    |\n| DATABASE_PROTOCOL       | Advanced, if DATABASE_TYPE is set to custom, used to manually create JDBC url                                                                                                                                                                                                                                | false    |\n| DATABASE_DRIVER         | Advanced, if DATABASE_TYPE is set to custom, you can only use those drivers supported by Traccar or loaded via DRIVER_FILE                                                                                                                                                                                   | false    |\n| DATABASE_SOCKET_FACTORY | Advanced, if DATABASE_TYPE is set to custom, allows loading a custom socket factory via JDBC url                                                                                                                                                                                                             | false    |\n| ENABLE_IAM_AUTH         | Used to set enableIamAuth on postgresql socket connections                                                                                                                                                                                                                                                   | false    |\n| JDBC_URL_OPTIONS        | Advanced, if DATABASE_TYPE is set to custom, You can use this to append to the JDBC URL, the default URL is: \u0026#x27;jdbc:${DATABASE_TYPE}:///${DATABASE_NAME}?socketFactory\u0026#x3D;${DATABASE_SOCKET_FACTORY}\u0026amp;amp;cloudSqlInstance\u0026#x3D;${CONNECTION_NAME}\u0026amp;amp;unixSocketPath\u0026#x3D;/cloudsql/${CONNECTION_NAME}${JDBC_URL_OPTIONS}\u0026#x27; | false    |\n\n\n### Note\n\n- You'll notice that the \u0026 symbols have been escaped - Remember, for the username and password you'll have to do the same (I'd recommend avoiding any XML-escape-required characters)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finlustra%2Ftraccar-google-cloud-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finlustra%2Ftraccar-google-cloud-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finlustra%2Ftraccar-google-cloud-sql/lists"}