From 83071350bc4a6a7815a16480f8023e9b5476628a Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 9 Aug 2023 11:36:45 +0200 Subject: [PATCH] Add initContainer --- src/main/resources/taiga/docker-compose.yml | 34 +++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/main/resources/taiga/docker-compose.yml b/src/main/resources/taiga/docker-compose.yml index 00377ce..11bf747 100644 --- a/src/main/resources/taiga/docker-compose.yml +++ b/src/main/resources/taiga/docker-compose.yml @@ -14,6 +14,40 @@ spec: labels: app: taiga spec: + initContainers: + - name: taiga-manage + image: taigaio/taiga-back:latest + imagePullPolicy: IfNotPresent + ports: + - containerPort: 80 + command: ["async_entrypoint.sh"] + volumeMounts: + - name: taiga-static + mountPath: /taiga-back/static + readOnly: false + - name: taiga-media + mountPath: /taiga-back/media + readOnly: false + env: + - name: POSTGRES_USER # ToDo: does taiga need a specific postgres version? + valueFrom: # ToDo: which env vars are needed by taiga-back and taiga-async + secretKeyRef: # ToDo: If all env vars are needed by taiga-back a config-map would be suitable + name: postgres-secret + key: postgres-user + - name: POSTGRES_PASSWORD + valueFrom: + secretKeyRef: + name: postgres-secret + key: postgres-password + - name: POSTGRES_DB + valueFrom: + configMapKeyRef: + name: postgres-config + key: postgres-db + - name: POSTGRES_HOST + value: "postgresql-service" + - name: POSTGRES_PORT + value: 5432 containers: - name: taiga-back image: taigaio/taiga-back:latest