Skip to content

Instantly share code, notes, and snippets.

@travis103
Created June 6, 2021 04:05
Show Gist options
  • Save travis103/05362e687f75ef38961df8328d6efa8d to your computer and use it in GitHub Desktop.
Save travis103/05362e687f75ef38961df8328d6efa8d to your computer and use it in GitHub Desktop.
#!/bin/bash
timedatectl set-timezone Asia/Hong_Kong
yum install -y docker git
systemctl start docker
systemctl enable docker
export DOCKER_COMPOSE_VERSION=`git ls-remote --tags git://github.com/docker/compose.git | awk '{print $2}' |grep -v "docs\|rc" |awk -F'/' '{print $3}' |sort -V |tail -n1`
mkdir -p /opt/bin/
curl -L https://github.com/docker/compose/releases/download/$DOCKER_COMPOSE_VERSION/docker-compose-`uname -s`-`uname -m` > /opt/bin/docker-compose
chmod +x /opt/bin/docker-compose
rm -rf v2ray
git clone https://github.com/ushdjkfnf/v2ray
cd v2ray/
/opt/bin/docker-compose up -d
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment