fix: viewer waiting for database

This commit is contained in:
NicolasHorde 2025-03-25 01:46:17 +01:00
parent c7a22496ab
commit b18f062964
Signed by: administrateur
GPG Key ID: 6F1745736DC187CC

View File

@ -104,6 +104,15 @@ spec:
labels:
app: typebot-viewer
spec:
initContainers:
- name: wait-for-postgres
image: busybox
command:
- /bin/sh
- -c
- >
until nc -z typebot-postgres 5432;
do echo "Waiting for PostgreSQL..."; sleep 2; done;
containers:
- name: viewer
image: {{ .Values.image.viewer.repository }}:{{ .Values.image.viewer.tag }}