Skip to content

junkaiman/teslamate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeslaMate apple/container Setup

This repository contains scripts to run TeslaMate's PostgreSQL, MQTT, and Grafana using apple/container service stack.

Initial Setup

  1. Copy the configuration template:

    cp config.sh.example config.sh
  2. Edit the configuration file:

    nano config.sh

    Update the following values:

    • POSTGRES_PASSWORD: Set a secure database password
    • ENCRYPTION_KEY: Set a secure encryption key for TeslaMate
    • CADDY_FROM_DOMAIN: Set your Tailscale domain or public domain
  3. Set up container DNS:

    • Configure your system to resolve *.test domains to containers
    • Set up Tailscale and its HTTPS cert (if using Tailscale)

Usage

Start all services:

./run.sh

Stop all services:

./stop.sh

Services

The setup includes the following services:

  • PostgreSQL Database (tm-db.test)
  • MQTT Broker (tm-mqtt.test)
  • TeslaMate Web Application (tm-web.test)
  • Grafana Dashboard (tm-grafana.test)
  • Caddy Reverse Proxy (routes external traffic to Grafana)

Configuration

All sensitive configuration is stored in config.sh (ignored by git). The following variables can be configured:

  • POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_DB: Database credentials
  • ENCRYPTION_KEY: TeslaMate encryption key
  • CADDY_FROM_DOMAIN: External domain for Caddy reverse proxy
  • Container names and network hosts

Security

  • The config.sh file contains sensitive information and is excluded from version control
  • Copy config.sh.example to config.sh and customize for your environment
  • Never commit config.sh to version control

About

Run teslamate using apple/container service stack

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages