misc: Add redis cache configuration (#63)

This commit is contained in:
Vincent Pochet 2022-07-07 16:45:18 +02:00 committed by GitHub
parent 48f65295dc
commit 2ee2bc4f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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