mirror of
https://github.com/netfun2000/hipudding-teslamate.git
synced 2026-02-27 09:44:28 +08:00
* Replace `docker-compose` commands with `docker compose` * Use official and up to date documentation for Docker and Compose installation * Revert IDE automatic style changes * Fix a dash from merging the upstream
678 B
678 B
title, sidebar_label
| title | sidebar_label |
|---|---|
| Upgrading PostgreSQL to a new major version | Upgrading PostgreSQL |
-
Create a backup
-
Stop all TeslaMate containers
docker compose down -
Delete the database volume. Be careful, this will delete all your previously recorded data! Make sure that your backup can be restored before you start.
docker volume rm "$(basename "$PWD")_teslamate-db" -
Change the postgres version in docker-compose.yml and start the container
database: image: postgres:xxdocker compose up -d database -
Restore the backup