Merge pull request #5677 from FinnStutzenstein/envMedia

Add env variables for media cache
This commit is contained in:
Emanuel Schütze 2020-11-05 22:24:28 +01:00 committed by GitHub
commit 4c7bf0a203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

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

View File

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

View File

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