From 2ee2bc4f1a05a160317a31840515f85db47f5354 Mon Sep 17 00:00:00 2001 From: Vincent Pochet Date: Thu, 7 Jul 2022 16:45:18 +0200 Subject: [PATCH] misc: Add redis cache configuration (#63) --- docker-compose.dev.yml | 2 ++ docker-compose.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index e62992c..0f16ff3 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -97,6 +97,7 @@ services: - LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION} - LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET} - LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} + - LAGO_REDIS_CACHE_URL=redis://redis:6379 labels: - "traefik.enable=true" - "traefik.http.routers.api_http.rule=Host(`api.lago.dev`)" @@ -133,6 +134,7 @@ services: - LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION} - LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET} - LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} + - LAGO_REDIS_CACHE_URL=redis://redis:6379 api-clock: image: api diff --git a/docker-compose.yml b/docker-compose.yml index 1ff4c2d..28d56fc 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,6 +54,7 @@ services: - LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION} - LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET} - LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} + - LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379} ports: - ${API_PORT:-3000}:3000 @@ -94,6 +95,7 @@ services: - LAGO_AWS_S3_REGION=${LAGO_AWS_S3_REGION} - LAGO_AWS_S3_BUCKET=${LAGO_AWS_S3_BUCKET} - LAGO_PDF_URL=${LAGO_PDF_URL:-http://pdf:3000} + - LAGO_REDIS_CACHE_URL=redis://${LAGO_REDIS_CACHE_HOST:-redis}:${LAGO_REDIS_CACHE_PORT:-6379} api-clock: container_name: lago-clock