-
Notifications
You must be signed in to change notification settings - Fork 2
/
template.env
70 lines (58 loc) · 2.35 KB
/
template.env
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
################################################################################
# Customization Options
################################################################################
# Some variables are documented in the README
# Set the port for the dynamic-conversion-service.
WEBSERVICE_PORT=3000
# Timing configuration
# how often the service will create/delete workers
APPLY_DESIRED_STATE_INTERVAL=30
# how often the service will dispatch requests to the workers
HEALTH_CHECK_INTERVAL=10
# input is deleted on successfuly/erronous conversion, output after the FILE_TTL
FILE_TTL=3600
# scaling workers will not exceed this number
MAX_WORKER_CONTAINERS=10
# this amount will also be created on start
MIN_WORKER_CONTAINERS=2
# insert your URL here
SWAGGER_HOST=http://localhost:3000
################################################################################
# This are sensible defaults, adjust only if necessary!
################################################################################
CONVERTER_DOCUMENT_PRIORITY=unoconv,imagemagick,ffmpeg
CONVERTER_MEDIA_PRIORITY=ffmpeg,imagemagick,unoconv
# refer to packages/conversion-service/docs
# CONVERT_TO_PDF_WITH=unoconv
# CONVERT_TO_PNG_WITH=imagemagick
# CONVERT_FROM_PNG_TO_PDF_WITH=imagemagick
# CONVERT_FROM_JPG_TO_PDF_WITH=imagemagick
# CONVERT_FROM_JPEG_TO_PDF_WITH=imagemagick
# These are only for extreme cases
MAX_CONVERSION_TIME=90000
MAX_CONVERSION_TRIES=1
################################################################################
# Application Config
# DO NOT TOUCH UNLESS YOU NEED TO!!!
################################################################################
FFMPEG_PATH=/opt/ffmpeg/bin/ffmpeg
IMAGE_MAGICK_PATH=/usr/bin/convert
UNOCONV_PATH=/usr/local/bin/unoconv
# Configuration for communication with the redis container
REDIS_HOST=dcs-redis-server
REDIS_PORT=6379
REDIS_NS=dcs-redis-ns
REDIS_QUEUE=dcs-redis-q
REDIS_TIMEOUT=15
# identify the workers
# the service will append a random short id to guarantee unique names
CONTAINER_NAME_PREFIX=dcs-worker_
# use latest image for workers
CONTAINER_IMAGE=teamparallax/conversion-service
CONTAINER_TAG=latest
DOCKER_SOCKET_PATH=/var/run/docker.sock
# Docker Stuff, do not touch!
COMPOSE_PROJECT_NAME=dcs
DOCKER_ROOT_NETWORK=dcs_dcs-network
TASKS_PER_CONTAINER=5
################################################################################