Add env variables for media cache
This commit is contained in:
parent
866acfe7f5
commit
0c66afc34a
@ -40,6 +40,12 @@ OPENSLIDES_FRONTEND_SERVICE_REPLICAS=
|
||||
REDIS_RO_SERVICE_REPLICAS=
|
||||
MEDIA_SERVICE_REPLICAS=
|
||||
|
||||
# Media service
|
||||
# -------------
|
||||
CACHE_SIZE=
|
||||
CACHE_DATA_MIN_SIZE_KB=
|
||||
CACHE_DATA_MAX_SIZE_KB=
|
||||
|
||||
# E-Mail
|
||||
# ------
|
||||
DEFAULT_FROM_EMAIL=
|
||||
|
@ -213,6 +213,9 @@ ifelse(read_env(`PGNODE_3_ENABLED'), 1, `'
|
||||
image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-media-service:latest
|
||||
environment:
|
||||
- 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
|
||||
networks:
|
||||
front:
|
||||
|
@ -239,6 +239,9 @@ ifelse(read_env(`PGNODE_3_ENABLED'), 1, `'
|
||||
image: ifenvelse(`DEFAULT_DOCKER_REGISTRY', openslides)/openslides-media-service:latest
|
||||
environment:
|
||||
- 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:
|
||||
replicas: ifenvelse(`MEDIA_SERVICE_REPLICAS', 8)
|
||||
restart_policy:
|
||||
|
Loading…
Reference in New Issue
Block a user