From 13f6ad468c5d5b795e4f19062236a01e4dc237af Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 4 Mar 2020 13:02:01 +0000 Subject: [PATCH] move docker-compose version into a variable --- prod-webserver-provision.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prod-webserver-provision.sh b/prod-webserver-provision.sh index 50f3041..5012587 100755 --- a/prod-webserver-provision.sh +++ b/prod-webserver-provision.sh @@ -6,6 +6,7 @@ _lets_encrypt_email="wptest@isnet.uk" _server_base_url="wptest.isnet.uk" +_docker_compose_version="1.25.4" # add user useradd -m -s /bin/bash ray @@ -38,7 +39,7 @@ add-apt-repository \ apt-get update apt-get install docker-ce docker-ce-cli containerd.io -curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose +curl -L "https://github.com/docker/compose/releases/download/$_docker_compose_version/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose echo "Basic HTTP authorisation password for user: ray" @@ -151,5 +152,6 @@ networks: external: true " >> docker-compose.yml docker-compose up -d + echo "VISIT PORTAINER URL NOW TO SET INITIAL LOGIN:" # or see if can set from script echo " https://$_portainer_url"