环境
过程
安装Docker与Docker Compose
1 2 3 4 5 6 7
| curl -sSL https://get.docker.com/ | sh systemctl start docker systemctl enable docker
curl -L https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose && sudo chmod +x /usr/local/bin/docker-compose
|
拉取V2Board Docker
1 2 3 4 5
| git clone https://github.com/hashcott/v2board-docker.git cd v2board-docker/ git submodule update --init echo ' branch = master' >> .gitmodules git submodule update --remote
|
修改配置文件
分为修改数据库配置
和caddy配置
, 这里网上很多教程带过了
1 2 3 4 5
| vi docker-compose.yaml
vi caddy.conf
|
启动v2board依赖的环境
下载v2board并启动
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| docker-compose exec www bash
wget https://getcomposer.org/installer -O composer.phar
php composer.phar php composer.phar install
php artisan v2board:install
php artisan horizon &
|
对接后端
一键安装
1
| bash <(curl -Ls https://raw.githubusercontent.com/XrayR-project/XrayR-release/master/install.sh)
|