mirror of
https://github.com/Dokploy/website.git
synced 2026-06-15 20:25:25 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user