mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-01-03 04:55:46 +01:00
14 lines
364 B
Bash
14 lines
364 B
Bash
# APP_SCRIPT_PATH
|
|
# APP_START_SCRIPT_PATH
|
|
# APP_ID
|
|
|
|
export SHARED_HTPASSWD_PATH
|
|
export GATEKEEPER_DATAPATH
|
|
export APP_SCRIPT_PATH
|
|
|
|
if [ "$DOCKER_MODE" = "swarm" ]; then
|
|
docker stack deploy -c $APP_SCRIPT_PATH/docker-compose.yaml $APP_ID
|
|
elif [ "$DOCKER_MODE" = "compose" ]; then
|
|
docker-compose -f $APP_SCRIPT_PATH/docker-compose.yaml up -d --remove-orphans
|
|
fi
|