Files
dock/ghproxy
2025-10-20 13:24:16 +08:00

23 lines
615 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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"
')"