24 lines
460 B
Django/Jinja
24 lines
460 B
Django/Jinja
# THIS FILE IS MANAGED BY ANSIBLE
|
|
# vim: ft=bash
|
|
# code: language=bash
|
|
#!/usr/bin/env bash
|
|
|
|
ARG="$1"
|
|
PROXY_DIR="{{ proxy_data_root }}"
|
|
|
|
case $ARG in
|
|
start)
|
|
docker compose -f $PROXY_DIR/docker-compose.yml up --remove-orphans -d
|
|
;;
|
|
stop)
|
|
docker compose -f $PROXY_DIR/docker-compose.yml down --remove-orphans
|
|
;;
|
|
restart)
|
|
docker compose -f $PROXY_DIR/docker-compose.yml restart
|
|
;;
|
|
*)
|
|
echo "Unrecognized argument"
|
|
exit 1
|
|
;;
|
|
esac
|