config(teslamate): Remove Docker secrets for sensitive values
Replaced Docker secrets with direct environment variable assignments for `ENCRYPTION_KEY`, `DATABASE_PASS`, and `POSTGRES_PASSWORD` in the `docker-compose.yml` file. This change simplifies the deployment by removing the dependency on Docker secrets for these values, opting for hardcoded strings instead. The `secrets` section has been removed from all relevant services (teslamate, database, grafana, mosquitto).
This commit is contained in:
@@ -3,9 +3,9 @@ services:
|
||||
image: teslamate/teslamate:latest
|
||||
restart: always
|
||||
environment:
|
||||
- ENCRYPTION_KEY=/run/secrets/password
|
||||
- ENCRYPTION_KEY=AA103626bb!
|
||||
- DATABASE_USER=teslamate
|
||||
- DATABASE_PASS=/run/secrets/password
|
||||
- DATABASE_PASS=AA103626bb!
|
||||
- DATABASE_NAME=teslamate
|
||||
- DATABASE_HOST=database
|
||||
- MQTT_HOST=mosquitto
|
||||
@@ -15,8 +15,6 @@ services:
|
||||
- /mnt/docker/home/teslamate/import:/opt/app/import
|
||||
cap_drop:
|
||||
- all
|
||||
secrets:
|
||||
- password
|
||||
networks:
|
||||
- teslamate
|
||||
# - pangolin-home
|
||||
@@ -26,12 +24,10 @@ services:
|
||||
restart: always
|
||||
environment:
|
||||
- POSTGRES_USER=teslamate
|
||||
- POSTGRES_PASSWORD=/run/secrets/password
|
||||
- POSTGRES_PASSWORD=AA103626bb!
|
||||
- POSTGRES_DB=teslamate
|
||||
volumes:
|
||||
- teslamate-db:/var/lib/postgresql
|
||||
secrets:
|
||||
- password
|
||||
networks:
|
||||
- teslamate
|
||||
|
||||
@@ -40,15 +36,13 @@ services:
|
||||
restart: always
|
||||
environment:
|
||||
- DATABASE_USER=teslamate
|
||||
- DATABASE_PASS=/run/secrets/password
|
||||
- DATABASE_PASS=AA103626bb!
|
||||
- DATABASE_NAME=teslamate
|
||||
- DATABASE_HOST=database
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- teslamate-grafana-data:/var/lib/grafana
|
||||
secrets:
|
||||
- password
|
||||
networks:
|
||||
- teslamate
|
||||
# - pangolin-home
|
||||
@@ -62,8 +56,6 @@ services:
|
||||
volumes:
|
||||
- mosquitto-conf:/mosquitto/config
|
||||
- mosquitto-data:/mosquitto/data
|
||||
secrets:
|
||||
- password
|
||||
networks:
|
||||
- teslamate
|
||||
|
||||
|
||||
Reference in New Issue
Block a user