fix mesh container and wait for nginx
This commit is contained in:
parent
da163d44e7
commit
2f07337588
|
@ -62,5 +62,11 @@ if [ ! -f "${TACTICAL_DIR}/tmp/mesh_token" ]; then
|
|||
node node_modules/meshcentral --logintokenkey > ${TACTICAL_DIR}/tmp/mesh_token
|
||||
fi
|
||||
|
||||
# wait for nginx container
|
||||
until (echo > /dev/tcp/"${NGINX_HOST_IP}"/443) &> /dev/null; do
|
||||
echo "waiting for nginx to start..."
|
||||
sleep 5
|
||||
done
|
||||
|
||||
# start mesh
|
||||
node node_modules/meshcentral
|
||||
|
|
|
@ -51,6 +51,7 @@ services:
|
|||
POSTGRES_PASS: ${POSTGRES_PASS}
|
||||
APP_HOST: ${APP_HOST}
|
||||
API_HOST: ${API_HOST}
|
||||
MESH_USER: ${MESH_USER}
|
||||
MESH_HOST: ${MESH_HOST}
|
||||
TRMM_USER: ${TRMM_USER}
|
||||
TRMM_PASS: ${TRMM_PASS}
|
||||
|
|
Loading…
Reference in New Issue