
Deploy TeslaMate on Your Own Server
A powerful, self-hosted data logger for your Tesla.
Want to deploy TeslaMate on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.
What is TeslaMate?
TeslaMate is a powerful self-hosted data logger for your Tesla.
Self-Host TeslaMate
Follow these steps to deploy on your own server.
Install Docker
Skip this step if Docker is already installed on your server.
curl -fsSL https://get.docker.com | sh
Configure
Customize the settings below. Defaults work for most cases.
Grafana
Application
Database
Deploy
Copy the configuration and run it on your server.
services:
teslamate:
image: teslamate/teslamate:1.28
environment:
DATABASE_HOST: teslamate-db
DATABASE_NAME: teslamate
DATABASE_PASS: 1b1fea559680c313
DATABASE_USER: teslamate
ENCRYPTION_KEY: 3cdb8a1f
MQTT_HOST: teslamate-mqtt
volumes:
- teslamate-import:/opt/app/import
depends_on:
- teslamate-db
teslamate-db:
image: postgres:15
environment:
POSTGRES_DB: teslamate
POSTGRES_PASSWORD: 1b1fea559680c313
POSTGRES_USER: teslamate
volumes:
- teslamate-db:/var/lib/postgresql/data
teslamate-grafana:
image: teslamate/grafana:1.28
environment:
DATABASE_HOST: teslamate-db
DATABASE_NAME: teslamate
DATABASE_PASS: 1b1fea559680c313
DATABASE_USER: teslamate
volumes:
- teslamate-db:/var/lib/postgresql/data
depends_on:
- teslamate-db
teslamate-mqtt:
volumes:
- teslamate-mosquitto-conf:/mosquitto/config
- teslamate-mosquitto-data:/mosquitto/data
volumes:
teslamate-import: {}
teslamate-db: {}
teslamate-mosquitto-conf: {}
teslamate-mosquitto-data: {}
Then run:
docker compose up -d
Access
Once started, access your app at http://localhost:4000
Why Self-Host TeslaMate?
Full Data Ownership
Your data stays on your servers. No third-party access.
No Monthly Fees
Pay only for your server. No per-seat or usage charges.
Complete Control
Customize, backup, and scale on your own terms.
Privacy & Compliance
Meet GDPR, HIPAA, or internal security requirements.
Technical Details
Docker Image
teslamate/teslamate:${TESLAMATE_VERSION}Want to go faster?
Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.
Install on any Linux server:
sh -c "$(curl -sSL https://get.senate.sh)"