From a631a5c83e08f938593f413608d5a93a26fb38cf Mon Sep 17 00:00:00 2001 From: Matthieu Lamalle Date: Fri, 30 Jun 2023 14:04:26 +0200 Subject: [PATCH] set hydra-dispatcher side container --- .../hydra-dispatcher-deployment.yaml | 35 ++++++++++++++++--- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml index 2e17452..da764fb 100644 --- a/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml +++ b/resources/hydra-dispatcher/resources/hydra-dispatcher-deployment.yaml @@ -17,20 +17,47 @@ spec: io.kompose.service: hydra-dispatcher spec: containers: - - name: hydra-dispatcher - image: reg.cadoles.com/cadoles/hydra-dispatcher:808658d-symfony-containers + - name: hydra-dispatcher-php-fpm + image: reg.cadoles.com/cadoles/hydra-dispatcher-base:0.0.1 + args: ["/usr/sbin/php-fpm7", "-F", "-e"] + env: + - name: PHP_FPM_LISTEN + value: 127.0.0.1:9000 + - name: PHP_MEMORY_LIMIT + value: 128m + - name: PHP_FPM_MEMORY_LIMIT + value: 128m envFrom: - configMapRef: name: hydra-dispatcher-env volumeMounts: - mountPath: /app/config/hydra name: hydra-dispatcher-apps + resources: {} + + - image: reg.cadoles.com/cadoles/hydra-dispatcher-base:0.0.1 + imagePullPolicy: Always + name: hydra-dispatcher-nginx + args: ["/usr/sbin/nginx"] + envFrom: + - configMapRef: + name: hydra-dispatcher-env + env: + - name: NGINX_APP_UPSTREAM_BACKEND_SERVER + value: 127.0.0.1:9000 + - name: NGINX_APP_ROOT + value: "/app/public/" + - name: NGINX_APP_PHP_INDEX + value: "/index.php" + - name: NGINX_ERROR_LOG_LEVEL + value: "warn" + - name: NGINX_APP_PHP_NON_FILE_PATTERN + value: "^/index\\.php(/|$)" ports: - - containerPort: 80 + - containerPort: 8080 resources: {} restartPolicy: Always volumes: - name: hydra-dispatcher-apps configMap: name: hydra-dispatcher-apps -