From f1584b258b21fcd5f2f47d2005fb8e38e4e240de Mon Sep 17 00:00:00 2001 From: Jean Froment Date: Wed, 20 Jun 2018 09:38:30 +0200 Subject: [PATCH] Add init and update script --- init-traefik.sh | 4 ++++ update-all.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 update-all.sh diff --git a/init-traefik.sh b/init-traefik.sh index ec313a7..a9cc20e 100755 --- a/init-traefik.sh +++ b/init-traefik.sh @@ -1,3 +1,7 @@ #!/bin/bash touch /opt/traefik/acme.json && chmod 600 /opt/traefik/acme.json +cp .env.sample .env +cp tunnel-options.sh.sample tunnel-options.sh +echo "Please edit .env file and tunnel-options.sh" +exit 0 \ No newline at end of file diff --git a/update-all.sh b/update-all.sh new file mode 100644 index 0000000..a010659 --- /dev/null +++ b/update-all.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +echo "Pulling all images..." +docker-compose pull +echo "Recreating containers if required..." +docker-compose up -d +echo "Done." +exit 0 \ No newline at end of file