-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env-template
More file actions
70 lines (59 loc) · 1.78 KB
/
.env-template
File metadata and controls
70 lines (59 loc) · 1.78 KB
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
#################################
### Misc Params
#################################
### Color Vars (for pretty scripting)
export BLA="\033[30m"
export RED="\033[31m"
export GRE="\033[32m"
export YEL="\033[33m"
export BLU="\033[34m"
export MAG="\033[35m"
export CYA="\033[36m"
export WHI="\033[37m"
#################################
### VSCode Development Setup (see _vscode_setup)
#################################
# export PYTHON_3_9_OR_HIGHER='python3'
# export CATCH_LIBS_DIR='.catchlibs'
#################################
### Python Config
#################################
export APP_NAME='catch-apis-dev'
### Docker Compose Project Name
### Serves as prefix for container names
export COMPOSE_PROJECT_NAME='catch-CHANGEME'
### API Config
API_HOST='0.0.0.0'
API_PORT=5000
BASE_HREF='/'
STREAM_TIMEOUT=60
DEBUG=false
### Type of deployment: LOCAL, STAGE, or PROD
### Note: local is only intended while developing code; never use on remote server
DEPLOYMENT_TIER=LOCAL
### Gunicorn settings for flask app (if =-1 then it's determined by CPU count)
GUNICORN_APP_NAME=${APP_NAME}
GUNICORN_FLASK_INSTANCES=-1
### Number of CATCH queue worker (woRQer) instances
CATCH_QUEUE_WORKER_INSTANCES=2
### Logging
CATCH_LOG_FILE=logging/catch.log
CATCH_APIS_LOG_FILE=logging/catch-apis.log
#################################
### Redis Config
#################################
REDIS_PORT=6379
REDIS_TASK_MESSAGES=TASK_MESSAGES_${DEPLOYMENT_TIER}
REDIS_TASK_MESSAGES_MAX_QUEUE_SIZE=1000
REDIS_JOBS=JOBS_${DEPLOYMENT_TIER}
REDIS_JOBS_MAX_QUEUE_SIZE=5
### Must equal service name in docker-compose file
REDIS_HOST=redis-server
#################################
### Postgres config
#################################
DB_DIALECT=postgresql+psycopg2
DB_PASSWORD=CHANGEME
DB_DATABASE=catch_dev
DB_USERNAME=CHANGEME
DB_HOST=CHANGEME