feat: docker修改

This commit is contained in:
zerosaturation 2026-04-10 12:54:36 +08:00
parent 6e7b3b96f4
commit 6663df10e8
2 changed files with 6 additions and 0 deletions

View File

@ -330,6 +330,11 @@ echo '✅ 镜像加速器配置完成'
echo '✅ Docker 环境就绪'
ENDSSH
print_step "🌐 创建 Docker 网络"
print_msg "$YELLOW" "创建 topfans-net..."
sshpass -p "$SERVER_PASSWORD" ssh -T -p "${SERVER_PORT}" "${SERVER_USER}@${SERVER_HOST}" "docker network create topfans-net 2>/dev/null || true"
print_msg "$GREEN" "✅ 网络就绪"
# 确保服务器目录存在
ssh_cmd "mkdir -p ${SERVER_PATH}/images"
print_msg "$GREEN" "✅ 服务器目录就绪"

View File

@ -303,6 +303,7 @@ services:
networks:
topfans-net:
driver: bridge
external: true
volumes:
postgres_data: