n8n container deployment improvement

This commit is contained in:
usmannasir
2025-04-09 17:05:18 +05:00
parent 9ffc32e2a0
commit a252a5e283

View File

@@ -942,14 +942,14 @@ services:
user: root
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
test: ["CMD-SHELL", "pg_isready -U {self.data['MySQLDBNUser']}"]
interval: 10s
timeout: 5s
retries: 5
environment:
- POSTGRES_USER={self.data['MySQLDBNUser']}
- POSTGRES_DB={self.data['MySQLDBName']}
- POSTGRES_PASSWORD={self.data['MySQLPassword']}
- POSTGRESQL_USERNAME={self.data['MySQLDBNUser']}
- POSTGRESQL_DATABASE={self.data['MySQLDBName']}
- POSTGRESQL_PASSWORD={self.data['MySQLPassword']}
volumes:
- "{self.data['ServiceName']}_db:/bitnami/postgresql"
networks: