From 4758a351b534ce3461418820f19a3165ba0e4107 Mon Sep 17 00:00:00 2001 From: wukongdaily <2666180@gmail.com> Date: Sat, 11 May 2024 21:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AATeslamate?= =?UTF-8?q?=20docker-compose=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- teslamate/docker-compose.yml | 56 ++++++++++++++++++++++++++++++++++++ zero3/op.sh | 2 +- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 teslamate/docker-compose.yml diff --git a/teslamate/docker-compose.yml b/teslamate/docker-compose.yml new file mode 100644 index 0000000..22fc144 --- /dev/null +++ b/teslamate/docker-compose.yml @@ -0,0 +1,56 @@ +services: + teslamate: + image: teslamate/teslamate:latest + restart: always + environment: + - ENCRYPTION_KEY=secretkey #replace with a secure key to encrypt your Tesla API tokens + - DATABASE_USER=teslamate + - DATABASE_PASS=password #insert your secure database password! + - DATABASE_NAME=teslamate + - DATABASE_HOST=database + - MQTT_HOST=mosquitto + ports: + - 4000:4000 + volumes: + - ./import:/opt/app/import + cap_drop: + - all + + database: + image: postgres:15 + restart: always + environment: + - POSTGRES_USER=teslamate + - POSTGRES_PASSWORD=password #insert your secure database password! + - POSTGRES_DB=teslamate + volumes: + - teslamate-db:/var/lib/postgresql/data + + grafana: + image: teslamate/grafana:latest + restart: always + environment: + - DATABASE_USER=teslamate + - DATABASE_PASS=password #insert your secure database password! + - DATABASE_NAME=teslamate + - DATABASE_HOST=database + ports: + - 3000:3000 + volumes: + - teslamate-grafana-data:/var/lib/grafana + + mosquitto: + image: eclipse-mosquitto:2 + restart: always + command: mosquitto -c /mosquitto-no-auth.conf + # ports: + # - 1883:1883 + volumes: + - mosquitto-conf:/mosquitto/config + - mosquitto-data:/mosquitto/data + +volumes: + teslamate-db: + teslamate-grafana-data: + mosquitto-conf: + mosquitto-data: \ No newline at end of file diff --git a/zero3/op.sh b/zero3/op.sh index aa97506..ef82841 100644 --- a/zero3/op.sh +++ b/zero3/op.sh @@ -95,7 +95,7 @@ install_1panel_on_openwrt() { 默认密码:1panel_password 默认入口:entrance' green http://${host_ip}:10086/entrance - green 或者访问 http://路由器ip:10086/entrance + green "或者访问 http://路由器ip:10086/entrance" }