fix: update PostgreSQL service to remove POSTGRES_PASSWORD environment variable

- Removed the POSTGRES_PASSWORD environment variable from the Docker service update command to enhance security by relying solely on Docker Secrets for password management.
This commit is contained in:
Mauricio Siu
2026-01-21 15:34:28 +01:00
parent 8119b7236b
commit e78c48b57d

View File

@@ -82,6 +82,7 @@ fi
# Update Postgres service to use Docker Secret
echo "🔄 Updating PostgreSQL service..."
docker service update \
--env-rm POSTGRES_PASSWORD \
--secret-add source=dokploy_postgres_password,target=/run/secrets/postgres_password \
--env-add POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password \
dokploy-postgres