Add env variables for media cache

This commit is contained in:
Finn Stutzenstein 2020-11-05 16:19:44 +01:00
parent 866acfe7f5
commit 0c66afc34a
No known key found for this signature in database
GPG Key ID: 9042F605C6324654
3 changed files with 12 additions and 0 deletions

View File

@ -40,6 +40,12 @@ OPENSLIDES_FRONTEND_SERVICE_REPLICAS=
REDIS_RO_SERVICE_REPLICAS= REDIS_RO_SERVICE_REPLICAS=
MEDIA_SERVICE_REPLICAS= MEDIA_SERVICE_REPLICAS=
# Media service
# -------------
CACHE_SIZE=
CACHE_DATA_MIN_SIZE_KB=
CACHE_DATA_MAX_SIZE_KB=
# E-Mail # E-Mail
# ------ # ------
DEFAULT_FROM_EMAIL= DEFAULT_FROM_EMAIL=

View File

@ -213,6 +213,9 @@ ifelse(read_env(`PGNODE_3_ENABLED'), 1, `'
image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-media-service:latest image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-media-service:latest
environment: environment:
- CHECK_REQUEST_URL=server:8000/check-media/ - CHECK_REQUEST_URL=server:8000/check-media/
- CACHE_SIZE=ifenvelse(`CACHE_SIZE', 10)
- CACHE_DATA_MIN_SIZE_KB=ifenvelse(`CACHE_DATA_MIN_SIZE_KB', 0)
- CACHE_DATA_MAX_SIZE_KB=ifenvelse(`CACHE_DATA_MAX_SIZE_KB', 10240)
restart: always restart: always
networks: networks:
front: front:

View File

@ -239,6 +239,9 @@ ifelse(read_env(`PGNODE_3_ENABLED'), 1, `'
image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-media-service:latest image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-media-service:latest
environment: environment:
- CHECK_REQUEST_URL=server:8000/check-media/ - CHECK_REQUEST_URL=server:8000/check-media/
- CACHE_SIZE=ifenvelse(`CACHE_SIZE', 10)
- CACHE_DATA_MIN_SIZE_KB=ifenvelse(`CACHE_DATA_MIN_SIZE_KB', 0)
- CACHE_DATA_MAX_SIZE_KB=ifenvelse(`CACHE_DATA_MAX_SIZE_KB', 10240)
deploy: deploy:
replicas: ifenvelse(`MEDIA_SERVICE_REPLICAS', 8) replicas: ifenvelse(`MEDIA_SERVICE_REPLICAS', 8)
restart_policy: restart_policy: