The Teslamate internal network definition in `docker-compose.yml` has been updated.
The network was renamed from `teslamate-internal` to `teslamate`.
It was also changed from an internally defined `overlay` network to an `external: true` network.
This change allows Teslamate to connect to a pre-existing or centrally managed Docker network, improving integration with other services or a Docker Swarm environment.
Enabled port mappings for Teslamate, Grafana, and Mosquitto services to make them accessible from the host.
Renamed the internal Docker network from `teslamate-internal` to `teslamate` for consistency. Removed the `pangolin-home` external network from service definitions and its declaration, as it is no longer required.
Simplified volume definitions by removing explicit `driver: local` and `driver_opts`. This transitions volumes from specific host bind mounts to Docker-managed named volumes, improving portability and simplifying management.
Added `driver: local` to the `teslamate-grafana-data`, `mosquitto-conf`,
and `mosquitto-data` volume definitions in `docker-compose.yml`.
This change explicitly specifies the local volume driver for these
bind-mounted volumes, improving clarity and ensuring consistent behavior
within the Docker environment.
Adds `driver: local` to the `teslamate-db` volume definition in `docker-compose.yml`.
This change explicitly declares the volume driver, improving clarity and ensuring consistent behavior for the bind mount. While `local` is often the default when `driver_opts` are used for bind mounts, explicit declaration removes ambiguity and makes the configuration more robust.
Replaced direct host path volume mounts with named volumes for the Teslamate database, Grafana data, and Mosquitto configuration and data.
This change centralizes the definition of host bind mounts for persistent data by using Docker named volumes with `driver_opts` set to `type: none` and `o: bind`. This improves consistency and manageability of volume definitions within the `docker-compose.yml` file.
Additionally, the import volume path for the `teslamate` service was adjusted from `/mnt/docker/home/teslamate/data/import` to `/mnt/docker/home/teslamate/import`.
The `teslamate` service in `docker-compose.yml` has been updated to pull its image from `teslamate/teslamate:latest` on Docker Hub. This change simplifies the image reference and ensures consistency with the primary distribution channel.
The official Teslamate Docker images have migrated from Docker Hub to
GitHub Container Registry (GHCR). This update ensures that the
`docker-compose.yml` pulls the Teslamate image from the correct and
official source.
The teslamate service in `docker-compose.yml` has been configured to join the `pangolin-home` network. This change enables communication between Teslamate and other services within the `pangolin-home` network, facilitating better integration with existing home infrastructure.
Changed the syntax for defining environment variables in the Teslamate
docker-compose.yml from `KEY=VALUE` to `KEY: VALUE`.
This update aligns with idiomatic YAML syntax, improving consistency and
readability across the configuration file. It also helps prevent potential
parsing issues that could arise if environment variable values contained
equal signs or other special characters.