This commit is contained in:
quackerd 2019-10-10 21:01:03 -04:00
parent 8e045307bb
commit c1ee4639e6
Signed by: d
GPG Key ID: 590A22374D0B819F
3 changed files with 30 additions and 0 deletions

7
vps/docker-compose.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

17
vps/docker-compose.yml Normal file
View File

@ -0,0 +1,17 @@
version: "2"
services:
server:
image: lihaixin/brook
environment:
- "RATE=100mbit"
# change the password to the password you want
- "password=hahaha666"
restart: always
ports:
# Change the first part of this to the port you want clients to connect to
- "3389:61089"
- "3389:61089/udp"
cap_add:
- NET_ADMIN

6
vps/run.sh Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
cd "$(dirname "$0")"
docker-compose pull
docker-compose up -d