Home Catalog TeslaMate
Smart Home & IoT

TeslaMate

Self-hosted data logger for your Tesla vehicle with detailed driving, battery, and charging analytics.

ARM64 & AMD64
Docker & Rootless Podman
100% Self-Hosted (Zero Lock-in)
RAM Profile: Medium
Default Port: Port 4000

Why this Configuration?

Quick Start (Standalone Docker Compose)

The snippet below is immediately ready to run in any standard Docker or Podman environment:

services:
  teslamate:
    image: "teslamate/teslamate:latest"
    container_name: njorddeploy-teslamate
    restart: unless-stopped
    environment:
      - ENCRYPTION_KEY=supersecretencryptionkey123456789
      - DATABASE_USER=teslamate
      - DATABASE_PASS=secretpassword
      - DATABASE_NAME=teslamate
      - DATABASE_HOST=teslamate_db
      - MQTT_HOST=mosquitto
    ports:
      - "4000:4000"
    depends_on:
      - teslamate_db
    networks:
      - njorddeploy_net

  teslamate_db:
    image: postgres:16-alpine
    container_name: njorddeploy-teslamate-db
    restart: unless-stopped
    environment:
      - POSTGRES_USER=teslamate
      - POSTGRES_PASSWORD=secretpassword
      - POSTGRES_DB=teslamate
    volumes:
      - "./data/teslamate/db:/var/lib/postgresql/data"
    networks:
      - njorddeploy_net

networks:
  njorddeploy_net:

Start the service directly via the command line: docker compose up -d

Configuration & Environment Variables

Key configuration parameters and defaults derived from the NjordDeploy component template:

Variable Default Value Description
TESLAMATE_WEB_PORT 4000 TeslaMate web interface port.

Ecosystem & Enterprise Integration

Effortless Management with NjordDeploy

Deploy, monitor, and update this service with a single click on your own hardware via the NjordDeploy Configurator.