image:
  repository: tccr.io/truecharts/traccar
  tag: v5.1@sha256:13672b7b48ce1fb3777a43dd76ebc5a27d4d08bcc5cc10805b8c316136a5743a
  pullPolicy: IfNotPresent

env:
  CONFIG_USE_ENVIRONMENT_VARIABLES: true
  LOGGER_CONSOLE: true
  DATABASE_DRIVER: "org.postgresql.Driver"
  DATABASE_USER: "{{ .Values.postgresql.postgresqlUsername }}"
  DATABASE_PASSWORD:
    secretKeyRef:
      name: dbcreds
      key: postgresql-password
  DATABASE_URL:
    secretKeyRef:
      name: dbcreds
      key: jdbc

service:
  main:
    ports:
      main:
        port: 8082
        targetPort: 8082

persistence:
  data:
    enabled: true
    mountPath: "/opt/traccar/data"

postgresql:
  enabled: true
  existingSecret: "dbcreds"
  postgresqlUsername: traccar
  postgresqlDatabase: traccar
