23 lines
615 B
Plaintext
23 lines
615 B
Plaintext
sudo mkdir -p /data
|
||
sudo mkdir -p /boot/脚本
|
||
file_path="/boot/脚本/ ghproxy.yaml"
|
||
|
||
version: '3.9'
|
||
services:
|
||
ghproxy:
|
||
image: 'wjqserver/ghproxy:latest'
|
||
restart: always
|
||
volumes:
|
||
- './ghproxy/log:/data/ghproxy/log'
|
||
- './ghproxy/config:/data/ghproxy/config'
|
||
ports:
|
||
- '7210:8080'
|
||
|
||
" > "$file_path"
|
||
docker compose -f /boot/脚本/ ghproxy.yaml up -d
|
||
|
||
# 输出成功信息
|
||
echo -e "\033[32m 服务启动成功!GHProxy 监听端口:7210 \033[0m"
|
||
echo -e "\033[34m 可通过 docker compose -f $yaml_file logs -f 查看实时日志 \033[0m"
|
||
')"
|