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:
|
||||
<<: *neodb-service
|
||||
command: takahe-manage runstator
|
||||
stop_signal: SIGINT
|
||||
depends_on:
|
||||
migration:
|
||||
condition: service_completed_successfully
|
||||
|
@ -239,6 +240,7 @@ services:
|
|||
dev-neodb-web:
|
||||
<<: *dev-neodb-service
|
||||
command: neodb-manage runserver 0.0.0.0:8000
|
||||
stop_signal: SIGINT
|
||||
|
||||
dev-neodb-worker:
|
||||
<<: *dev-neodb-service
|
||||
|
@ -247,10 +249,12 @@ services:
|
|||
dev-takahe-web:
|
||||
<<: *dev-neodb-service
|
||||
command: takahe-manage runserver 0.0.0.0:8000
|
||||
stop_signal: SIGINT
|
||||
|
||||
dev-takahe-stator:
|
||||
<<: *dev-neodb-service
|
||||
command: takahe-manage runstator
|
||||
stop_signal: SIGINT
|
||||
|
||||
dev-nginx:
|
||||
<<: *dev-neodb-service
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/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
|
||||
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
|
||||
nginx -g 'daemon off;'
|
||||
exec nginx -g 'daemon off;'
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
#!/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