@@ -31,7 +31,7 @@ services:
3131 - ES_HOST=${ES_HOST-es}
3232 - ES_PORT=${ES_PORT-9200}
3333 - ENVIRONMENT=${ENVIRONMENT-production}
34- - DEBUG=True # needed to be able to serve staticfiles with Django server
34+ - DEBUG=${DEBUG-FALSE}
3535 - SECRET_KEY
3636 - SENTRY_DSN_KEY
3737 - API_SUPERUSER_PASSWORD=${API_SUPERUSER_PASSWORD-Root123}
@@ -47,34 +47,34 @@ services:
4747 test : " curl --silent --fail http://localhost:8000/version/ || exit 1"
4848 celery :
4949 image : openconceptlab/oclapi2:${ENVIRONMENT-production}
50- command : ["bash", "-c", "CELERY_WORKER_NAME=default ./start_celery_worker.sh -P prefork -Q default --autoscale=10,2 "]
50+ command : ["bash", "-c", "CELERY_WORKER_NAME=default ./start_celery_worker.sh -P prefork -Q default --autoscale=5,1 "]
5151 restart : " always"
5252 healthcheck :
5353 test : ["CMD-SHELL", "-c", "CELERY_WORKER_NAME=default ./ping_celery_worker.sh"]
5454 environment :
5555 - REDIS_HOST=${REDIS_HOST-redis}
5656 - REDIS_PORT=${REDIS_PORT-6379}
57- - DEBUG=${DEBUG-False }
57+ - DEBUG=${DEBUG-FALSE }
5858 celery_indexing :
5959 image : openconceptlab/oclapi2:${ENVIRONMENT-production}
60- command : ["bash", "-c", "CELERY_WORKER_NAME=indexing ./start_celery_worker.sh -P prefork -Q indexing --autoscale=10,2 "]
60+ command : ["bash", "-c", "CELERY_WORKER_NAME=indexing ./start_celery_worker.sh -P prefork -Q indexing --autoscale=2,1 "]
6161 restart : " always"
6262 healthcheck :
6363 test : ["CMD-SHELL", "-c", "CELERY_WORKER_NAME=indexing ./ping_celery_worker.sh"]
6464 environment :
6565 - REDIS_HOST=${REDIS_HOST-redis}
6666 - REDIS_PORT=${REDIS_PORT-6379}
67- - DEBUG=${DEBUG-False }
67+ - DEBUG=${DEBUG-FALSE }
6868 celery_concurrent :
6969 image : openconceptlab/oclapi2:${ENVIRONMENT-production}
70- command : ["bash", "-c", "CELERY_WORKER_NAME=concurrent ./start_celery_worker.sh -P prefork -Q concurrent -c 10 "]
70+ command : ["bash", "-c", "CELERY_WORKER_NAME=concurrent ./start_celery_worker.sh -P prefork -Q concurrent -c 5 "]
7171 restart : " always"
7272 healthcheck :
7373 test : ["CMD-SHELL", "-c", "CELERY_WORKER_NAME=concurrent ./ping_celery_worker.sh"]
7474 environment :
7575 - REDIS_HOST=${REDIS_HOST-redis}
7676 - REDIS_PORT=${REDIS_PORT-6379}
77- - DEBUG=${DEBUG-False }
77+ - DEBUG=${DEBUG-FALSE }
7878 celery_bulk_import_0_1 :
7979 image : openconceptlab/oclapi2:${ENVIRONMENT-production}
8080 command : ["bash", "-c", "CELERY_WORKER_NAME=bulk_import_0_1 ./start_celery_worker.sh -Q bulk_import_0,bulk_import_1 -c 1"]
@@ -84,7 +84,7 @@ services:
8484 environment :
8585 - REDIS_HOST=${REDIS_HOST-redis}
8686 - REDIS_PORT=${REDIS_PORT-6379}
87- - DEBUG=${DEBUG-False }
87+ - DEBUG=${DEBUG-FALSE }
8888 celery_bulk_import_2_3 :
8989 image : openconceptlab/oclapi2:${ENVIRONMENT-production}
9090 command : ["bash", "-c", "CELERY_WORKER_NAME=bulk_import_2_3 ./start_celery_worker.sh -Q bulk_import_2,bulk_import_3 -c 1"]
@@ -94,7 +94,7 @@ services:
9494 environment :
9595 - REDIS_HOST=${REDIS_HOST-redis}
9696 - REDIS_PORT=${REDIS_PORT-6379}
97- - DEBUG=${DEBUG-False }
97+ - DEBUG=${DEBUG-FALSE }
9898 celery_bulk_import_root :
9999 image : openconceptlab/oclapi2:${ENVIRONMENT-production}
100100 command : ["bash", "-c", "CELERY_WORKER_NAME=bulk_import_root ./start_celery_worker.sh -Q bulk_import_root -c 1"]
@@ -104,7 +104,7 @@ services:
104104 environment :
105105 - REDIS_HOST=${REDIS_HOST-redis}
106106 - REDIS_PORT=${REDIS_PORT-6379}
107- - DEBUG=${DEBUG-False }
107+ - DEBUG=${DEBUG-FALSE }
108108 flower :
109109 image : openconceptlab/oclapi2:${ENVIRONMENT-production}
110110 command : ["bash", "-c", "./start_flower.sh"]
0 commit comments