You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After I built teslamate using the Docker above nas, login grafana prompted:db query error: pq: password authentication failed for user"teslamate”
Is there something wrong with me?
Thanks a Million.
Below is my file from docker-Compose:
`version: "3"
services:
teslamate:
image: teslamate/teslamate
restart: always
container_name: TeslaMate
environment:
- ENCRYPTION_KEY=G1BgNWsb2B9U5owHrntD7g7S8hrAnTf
- DATABASE_USER=teslamate
- DATABASE_PASS=minilangdong
- 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
container_name: postgres
environment:
- POSTGRES_USER=teslamate
- POSTGRES_PASSWORD=minilangdong
- POSTGRES_DB=teslamate
volumes:
- ./teslamate-db:/var/lib/postgresql/data
grafana:
image: teslamate/grafana
restart: always
container_name: grafana
environment:
- DATABASE_USER=teslamate
- DATABASE_PASS=minilangdong
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
ports:
- 3000:3000
volumes:
- teslamate-grafana-data:/var/lib/grafana
mosquitto:
image: eclipse-mosquitto:2
restart: always
container_name: mosquitto
command: mosquitto -c /mosquitto-no-auth.conf
ports:
- 1883:1883
volumes:
- ./mosquitto-conf:/mosquitto/config
- ./mosquitto-data:/mosquitto/data
volumes:
teslamate-grafana-data:
teslamate-db:
mosquitto-conf:
mosquitto-data:`
Beta Was this translation helpful? Give feedback.
All reactions