move docker-compose version into a variable

This commit is contained in:
Ray Elliott 2020-03-04 13:02:01 +00:00
parent c309b356d9
commit 13f6ad468c
1 changed files with 3 additions and 1 deletions

View File

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