new compose-way
This commit is contained in:
parent
0b36087846
commit
7c30e44208
@ -1,7 +1,11 @@
|
|||||||
cd /srv
|
cd /srv
|
||||||
|
|
||||||
# install software
|
# install software
|
||||||
apt install nano wget curl docker.io docker-compose -y
|
apt install nano wget curl docker.io -y
|
||||||
|
|
||||||
|
# install docker-compose. Apt installs broken version, so use this way.
|
||||||
|
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
|
||||||
|
chmod +x /usr/local/bin/docker-compose
|
||||||
|
|
||||||
# install keys
|
# install keys
|
||||||
curl https://git.infra.timal.kz/djerom/public/raw/branch/master/install-keys.sh | bash
|
curl https://git.infra.timal.kz/djerom/public/raw/branch/master/install-keys.sh | bash
|
||||||
@ -16,4 +20,5 @@ curl https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/.env.example
|
|||||||
|
|
||||||
# install updater
|
# install updater
|
||||||
curl https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/update.sh | sed 's/\r$//' > update.sh
|
curl https://git.infra.timal.kz/djerom/public/raw/branch/master/srv/update.sh | sed 's/\r$//' > update.sh
|
||||||
|
chmod +x /srv/update.sh
|
||||||
echo "*/3 * * * * /srv/update.sh" | crontab -
|
echo "*/3 * * * * /srv/update.sh" | crontab -
|
||||||
Loading…
Reference in New Issue
Block a user