Add init and update script

This commit is contained in:
Jean Froment 2018-06-20 09:38:30 +02:00
parent 3cd72ed641
commit f1584b258b
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#!/bin/bash #!/bin/bash
touch /opt/traefik/acme.json && chmod 600 /opt/traefik/acme.json 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

8
update-all.sh Normal file
View File

@ -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