Files
komodo-stacks/projects/teslamate-server/compose.yaml
T
Gitea Sync Bot e28da035ce Sync teslamate-server from Gitea to monorepo
Repository: admin/teslamate-server
Timestamp: 2025-04-19_22-18-01
Target directory: projects/teslamate-server
2025-04-19 22:18:09 +01:00

50 lines
1.3 KiB
YAML

services:
teslamate:
image: teslamate/teslamate:latest
restart: always
ports:
- 4000:4000
volumes:
- ./import:/opt/app/import
cap_drop:
- all
environment:
- DATABASE_USER=${DATABASE_USER:-teslamate}
- DATABASE_PASS=${DATABASE_PASS}
- DATABASE_NAME=${DATABASE_NAME:-teslamate}
- DATABASE_HOST=database
- ENCRYPTION_KEY=${ENCRYPTION_KEY}
- MQTT_HOST=mosquitto
database:
image: postgres:15
restart: always
volumes:
- teslamate-db:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${DATABASE_USER:-teslamate}
- POSTGRES_PASSWORD=${DATABASE_PASS}
- POSTGRES_DB=${DATABASE_NAME:-teslamate}
grafana:
image: teslamate/grafana:latest
restart: always
ports:
- 3001:3000
volumes:
- teslamate-grafana-data:/var/lib/grafana
environment:
- DATABASE_USER=${DATABASE_USER:-teslamate}
- DATABASE_PASS=${DATABASE_PASS}
- DATABASE_NAME=${DATABASE_NAME:-teslamate}
- DATABASE_HOST=database
mosquitto:
image: eclipse-mosquitto:2
restart: always
command: mosquitto -c /mosquitto-no-auth.conf
volumes:
- mosquitto-conf:/mosquitto/config
- mosquitto-data:/mosquitto/data
volumes:
teslamate-db:
teslamate-grafana-data:
mosquitto-conf:
mosquitto-data: