@@ -187,12 +187,6 @@ Usage: itkdev-docker-compose command [command arguments]
187187
188188Commands:
189189
190- dory:start
191- Start dory reverse proxy
192-
193- dory:stop
194- Stop dory reverse proxy
195-
196190 url [service [port]]
197191 Print url to site or a service
198192
465459
466460# Allow traefik:start without existence of .env
467461if [[ " $# " -gt " 0" && " $1 " == " traefik:start" ]]; then
468- if [ " $( docker inspect -f ' {{.State.Running}}' dory_dnsmasq 2> /dev/null) " == " true" ]; then
469- (>&2 echo " ${bold} Dory reverse proxy should be stopped first. Run itkdev-docker-compose dory:stop.${normal} " )
470- exit 22;
471- fi
472462 docker network inspect frontend > /dev/null 2>&1 || docker network create --driver=bridge --attachable --internal=false frontend
473463 $( cd ${script_dir} /../traefik/; docker compose up -d)
474464 exit
@@ -486,22 +476,6 @@ if [[ "$#" -gt "0" && "$1" == "traefik:pull" ]]; then
486476 exit
487477fi
488478
489- # Allow dory:start without existence of .env
490- if [[ " $# " -gt " 0" && " $1 " == " dory:start" ]]; then
491- if [ " $( docker inspect -f ' {{.State.Running}}' traefik 2> /dev/null) " == " true" ]; then
492- (>&2 echo " ${bold} Traefik reverse proxy should be stopped first. Run itkdev-docker-compose traefik:stop.${normal} " )
493- exit 22;
494- fi
495- dory up
496- exit
497- fi
498-
499- # Allow dory:start without existence of .env
500- if [[ " $# " -gt " 0" && " $1 " == " dory:stop" ]]; then
501- dory down
502- exit
503- fi
504-
505479# Allow version without existence of compose file.
506480if [[ " $# " -gt " 0" && " $1 " == " version" ]]; then
507481 echo Version: ${VERSION}
560534# Check if revers proxy is running and print warning if not.
561535set +o errexit
562536is_treafik_running=$( docker inspect -f ' {{.State.Running}}' traefik 2> /dev/null)
563- is_dory_running=$( docker inspect -f ' {{.State.Running}}' dory_dnsmasq 2> /dev/null)
564537set -o errexit
565538
566- if [ ! " $is_treafik_running " == " true" ] && [ ! " $is_dory_running " == " true " ] ; then
539+ if [ ! " $is_treafik_running " == " true" ]; then
567540 (>&2 echo " ${bold} Reverse proxy has not been started. Hostname will not be resolved to containers and not all commands will work correctly.${normal} " )
568541fi
569542
0 commit comments