更新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