speed up docker restart
This commit is contained in:
parent
a776dcfbb5
commit
90ef826344
4 changed files with 7 additions and 3 deletions
|
@ -204,6 +204,7 @@ services:
|
||||||
takahe-stator:
|
takahe-stator:
|
||||||
<<: *neodb-service
|
<<: *neodb-service
|
||||||
command: takahe-manage runstator
|
command: takahe-manage runstator
|
||||||
|
stop_signal: SIGINT
|
||||||
depends_on:
|
depends_on:
|
||||||
migration:
|
migration:
|
||||||
condition: service_completed_successfully
|
condition: service_completed_successfully
|
||||||
|
@ -239,6 +240,7 @@ services:
|
||||||
dev-neodb-web:
|
dev-neodb-web:
|
||||||
<<: *dev-neodb-service
|
<<: *dev-neodb-service
|
||||||
command: neodb-manage runserver 0.0.0.0:8000
|
command: neodb-manage runserver 0.0.0.0:8000
|
||||||
|
stop_signal: SIGINT
|
||||||
|
|
||||||
dev-neodb-worker:
|
dev-neodb-worker:
|
||||||
<<: *dev-neodb-service
|
<<: *dev-neodb-service
|
||||||
|
@ -247,10 +249,12 @@ services:
|
||||||
dev-takahe-web:
|
dev-takahe-web:
|
||||||
<<: *dev-neodb-service
|
<<: *dev-neodb-service
|
||||||
command: takahe-manage runserver 0.0.0.0:8000
|
command: takahe-manage runserver 0.0.0.0:8000
|
||||||
|
stop_signal: SIGINT
|
||||||
|
|
||||||
dev-takahe-stator:
|
dev-takahe-stator:
|
||||||
<<: *dev-neodb-service
|
<<: *dev-neodb-service
|
||||||
command: takahe-manage runstator
|
command: takahe-manage runstator
|
||||||
|
stop_signal: SIGINT
|
||||||
|
|
||||||
dev-nginx:
|
dev-nginx:
|
||||||
<<: *dev-neodb-service
|
<<: *dev-neodb-service
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /neodb && ${NEODB_VENV}/bin/python manage.py $@
|
cd /neodb && exec ${NEODB_VENV}/bin/python manage.py $@
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
chown app:app /www/media /www/m
|
chown app:app /www/media /www/m
|
||||||
envsubst '${NEODB_WEB_SERVER} ${NEODB_API_SERVER} ${TAKAHE_WEB_SERVER}' < $NGINX_CONF > /etc/nginx/conf.d/neodb.conf
|
envsubst '${NEODB_WEB_SERVER} ${NEODB_API_SERVER} ${TAKAHE_WEB_SERVER}' < $NGINX_CONF > /etc/nginx/conf.d/neodb.conf
|
||||||
nginx -g 'daemon off;'
|
exec nginx -g 'daemon off;'
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd /takahe && ${TAKAHE_VENV}/bin/python manage.py $@
|
cd /takahe && exec ${TAKAHE_VENV}/bin/python manage.py $@
|
||||||
|
|
Loading…
Add table
Reference in a new issue