From 98a78b23a517d1f966233242d3befe14833a2557 Mon Sep 17 00:00:00 2001 From: alexeh Date: Wed, 4 Dec 2024 04:17:42 +0100 Subject: [PATCH] add backoffice session env vars to backoffice and api docker files --- api/Dockerfile | 4 ++++ backoffice/Dockerfile | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/api/Dockerfile b/api/Dockerfile index 9c6ce05f..53c728a3 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -17,6 +17,8 @@ ARG AWS_SES_ACCESS_KEY_ID ARG AWS_SES_ACCESS_KEY_SECRET ARG AWS_SES_DOMAIN ARG AWS_REGION +ARG BACKOFFICE_SESSION_COOKIE_NAME +ARG BACKOFFICE_SESSION_COOKIE_SECRET ENV DB_HOST $DB_HOST ENV DB_PORT $DB_PORT @@ -35,6 +37,8 @@ ENV AWS_SES_ACCESS_KEY_ID $AWS_SES_ACCESS_KEY_ID ENV AWS_SES_ACCESS_KEY_SECRET $AWS_SES_ACCESS_KEY_SECRET ENV AWS_SES_DOMAIN $AWS_SES_DOMAIN ENV AWS_REGION $AWS_REGION +ENV BACKOFFICE_SESSION_COOKIE_NAME $BACKOFFICE_SESSION_COOKIE_NAME +ENV BACKOFFICE_SESSION_COOKIE_SECRET $BACKOFFICE_SESSION_COOKIE_SECRET WORKDIR /app diff --git a/backoffice/Dockerfile b/backoffice/Dockerfile index 728754a6..d684a327 100644 --- a/backoffice/Dockerfile +++ b/backoffice/Dockerfile @@ -6,6 +6,8 @@ ARG DB_NAME ARG DB_USERNAME ARG DB_PASSWORD ARG API_URL +ARG BACKOFFICE_SESSION_COOKIE_NAME +ARG BACKOFFICE_SESSION_COOKIE_SECRET ENV DB_HOST $DB_HOST ENV DB_PORT $DB_PORT @@ -13,6 +15,9 @@ ENV DB_NAME $DB_NAME ENV DB_USERNAME $DB_USERNAME ENV DB_PASSWORD $DB_PASSWORD ENV API_URL $API_URL +ENV BACKOFFICE_SESSION_COOKIE_NAME $BACKOFFICE_SESSION_COOKIE_NAME +ENV BACKOFFICE_SESSION_COOKIE_SECRET $BACKOFFICE_SESSION_COOKIE_SECRET + WORKDIR /app