docker一键部署私有 zerotier 构建私有plant moon 突破50台设备限制

前言

镜像简介

  •  默认用户:admin
  •  默认密码:loganjin.cn
  •  zerotier-one版本:1.12.2
  •  基础镜像:debian:bullseye-slim
  •  附加功能:构建planet、构建mooon、查询配置moon方法
  •  访问地址:http://IPaddress:3000https://IPaddress:3443
  •  docker仓库镜像:loganjindev/zerotier-ztncui:latest
  •  阿里云仓库镜像:registry.cn-shanghai.aliyuncs.com/logandev/zerotier-ztncui:latest
  •  环境变量:MYADDR MYDOMAIN HTTP_PORT HTTPS_PORT ZTNCUI_PASSWD NODE_ENV HTTP_ALL_INTERFACES

部署教程

一、如未安装docker请自行安装也可参考我博客此篇文章:快速安装Docker及配置

二、Docker命令行部署:

# 下载项目
git clone https://gitee.com/logandev/zerotier-planet-moon.git
or 
git clone https://github.com/LoganJinDev/zerotier-planet-moon.git

# 切换到项目目录
cd zerotier-planet-moon
# 启动命令
docker run -d \
    --net=host \
    --name zerotier-planet \
    --restart unless-stopped \
    -v $PWD/zerotier-one:/var/lib/zerotier-one \
    -v $PWD/ztncui/etc:/opt/key-networks/ztncui/etc \
    loganjindev/zerotier-ztncui:latest
# 参数注释
--net=host #使用主机网络
--name zerotier-planet # 容器名
--restart unless-stopped # 容器重启策略
-v $PWD/zerotier-one:/var/lib/zerotier-one \ # 将容器/var/lib/zerotier-one挂载到主机$PWD/zerotier-one
-v $PWD/ztncui/etc:/opt/key-networks/ztncui/etc \ # 将容器/opt/key-networks/ztncui/etc挂载到主机$PWD/ztncui/etc
三、docker-compose部署

# 下载项目
git clone https://gitee.com/logandev/zerotier-planet-moon.git
or 
git clone https://github.com/LoganJinDev/zerotier-planet-moon.git
# 切换到项目目录
cd zerotier-planet-moon
# 启动命令
docker-compose up -d

#如果未指定密码,可执行 docker exec -it zerotier-planet cat /var/log/docker-ztncui.log|grep Password 获取密码
四、构建planet和moon

# 构建 moon
docker exec -it zerotier-planet build moon
# 构建 planet
docker exec -it zerotier-planet build planet
# 查询客户端配置moon方法
docker exec -it zerotier-planet build moonid
五、zerotier客户端配置planet

  • 防火墙开放端口:3000 3443 9993/tcp 9993/udp 3180
  • 端口简介:
    • 3000:ztncui http访问
    • 3443:ztncui https访问
    • 9993:9993/tcp 9993/udp 均为zerotier使用 必须开放
    • 3180:planet moon下载端口 如果不需要可不开放
  • windows配置planet
    • 下载planet文件:可通过浏览器访问http://IPaddress:3180通过服务器./ztncui/etc/myfs目录获取
    • 替换planet:将下载的planet替换C:\ProgramData\ZeroTier\One\目录下的planet
    • 重启服务:系统搜索 "服务" 然后找到"ZeroTier One"点 重启动 即可
  • linux配置planet
    • 下载planet文件:可通过浏览器访问http://IPaddress:3180通过服务器./ztncui/etc/myfs目录获取
    • 替换planet:将下载的planet替换/var/lib/zerotier-one目录下的planet
    • 重启服务:service zerotier-one restart
  • 完成以上步骤planet配置就完成了
六、zerotier客户端配置moon

  • 查询方法:docker exec -it zerotier-planet build moonid会得到以下内容
    • Your ZeroTier moon id is 89xxxxxxab, you could orbit moon using "zerotier-cli orbit 89xxxxxxab 89xxxxxxab"
  • windows配置moon
    • 以管理员方式打开cmd输入zerotier-cli orbit 89xxxxxxab 89xxxxxxab即可
  • linux配置moon
    • 命令行输入zerotier-cli orbit 89xxxxxxab 89xxxxxxab即可
七、创建网络及加入网络

  • 浏览器打开网站:http://IPaddress:3000https://IPaddress:3443
  • 登录:默认用户:admin 默认密码:loganjin.cn
  • 点击Add network输入网络名称 点击Create Network
  • 点击Network查看Network ID
  • 客户端加入网络:zerotier-cli join Network ID
  • 客户端常用命令
# 加入网络
zerotier-cli join Network ID
# 查看当前加入的网络列表
zerotier-cli listnetworks
# 删除网络
zerotier-cli leave Network ID

结语

  • 此镜像基于kmahyyg/ztncui-aio项目改造,在此特别感谢,此外已将zerotier更新至v1.12.2最新版。
  • 配置官方planet+moon 不是很稳定有时ping会丢包,因此推荐 配置私人planet+moon 更稳定。
  • 经测试配置私人planet+moon对比只配置私人planetping time基本都在10-20s,可根据实际情况部署planet moon。

所有评论(3)

  1. ingramant911说道:

    This message is used to verify that this feed (feedId:71517037739950080) belongs to me (userId:71504935896436736). Join me in enjoying the next generation information browser https://follow.is.

  2. Your elbows ought to stay at a 45-degree angle, and your arms shouldn’t shake as you lower the weight.
    The trapezius muscle, positioned in the higher again and neck space,
    is engaged in the course of the flat chest press to stabilize and assist the
    shoulders and backbone. All you need is a flat bench and a pair of dumbbells
    to perform this exercise effectively at home. Start with a weight you can raise for 8–12
    reps whereas maintaining good kind. It is not just
    sufficient to know the way to do flat dumbbell press.

    Ought To you are feeling any shoulder ache in the course of the bench
    press, exchange the weights and finish the movement immediately.
    Lifting from an incline emphasizes the anterior deltoids of the shoulder.
    You can perform bench presses in a wide selection of methods to fulfill your health level and targets.

    Bench presses help restore muscle balance for athletes who
    primarily use pulling muscle tissue. The barbell bench
    press, deadlift, and squat are aggressive lifts in powerlifting.

    Bear In Mind, it is extra necessary to have correct kind than massive quantities of weight.
    Once you may have mastered the method, you’ll add extra weight to your dumbbell bench press.
    By focusing on approach, you can benefit from the flat dumbbell press while reducing the chance of injury.
    Maintain the dumbbells with a impartial grip, palms dealing with each other.3.

    The reverse grip barbell bench press may be done
    using a flat or incline bench. Both means, the purpose of the reverse
    grip bench press is to take stress and work off the shoulders.
    The reverse grip places emphasis on the higher chest and the triceps.

    Whether Or Not you’re a beginner or an skilled lifter, mastering the right kind and technique is essential for maximizing your outcomes and minimizing the chance of damage.
    The flat bench press workout and its variations are fundamental to building energy, size, and functionality in your upper body.
    By incorporating totally different exercises, focusing on form, and following a
    structured routine, you presumably can achieve impressive outcomes.
    Whether you’re a newbie or a complicated lifter, the flat bench presents
    countless prospects to progress and problem your self.
    In bodybuilding the flat bench dumbbell press is very important for full growth
    of the chest, particularly the middle part and anterior shoulder joint muscular tissues.
    It is an assistive exercise for the triceps and
    serratus anterior.
    Maintain your workouts contemporary and exciting with these dumbbell bench press variations.
    A decline barbell bench press might be at an angle of about -15˚.
    Simply like incline and flat bench, you have different grip
    choices, but standard grip is 1.5x shoulder width. The bench press, which can also be known as a chest press,
    is an upper body exercise in which you press a barbell or dumbbells upward while mendacity on a weight training
    bench.
    As you’re sitting put your arms in front of you as in case you are driving a race automobile and flex your abs like
    you are attempting to curl up like a sort of rolly-polly bugs.
    Then attempt to swing up your knees and while you are
    doing all this see what happens to your thoracic spine and the way much control you
    could have over your scapula. From the seated position to the setup,
    with practice, may be done in one easy movement.

    Poor diet is considered one of the commonest reasons
    why pecs won’t develop. For extra particulars, you can take
    a glance at my different submit on choosing the ideal weight to lift.

    The bench press is a functional exercise that helps you extra simply perform every day
    activities that require pushing or carrying. Whereas each
    goal the higher physique, each exercise affects specific muscular
    tissues in a special way. For occasion, a small 2020 examine showed that the overhead press prompts
    the deltoids more, whereas the bench press focuses more on the chest.

    Particularly, the barbell bench press is likely considered one of the Big Three in aggressive powerlifting, alongside squats and deadlifts.

    This is as a result of with squats, deadlifts and bench
    press, you have a transparent image of total whole body strength.
    As such, the bench press is considered the ultimate word upper body train.
    One Other difference is the muscle tissue,
    and more specifically, the pec fibers that each variation will help prepare.
    A large reason for using flat, incline, and decline
    bench presses is they can be great for biasing the totally different muscle fibers of the pec main. If you are solely going to do one bench press train in your chest muscles, the flat barbell bench press is probably the better selection. It works each your higher, middle,
    and lower pecs in an extended range of motion, and is confirmed efficient for building a giant chest.

    Use the steps above for a conventional bench press, however grip barbell with hands shoulder-width throughout the motion. Read on to learn extra about bench presses and the means to get essentially the most out of this train. For building muscle mass, goal for
    3-4 units of 8-12 repetitions for each train.
    This can additionally be an excellent train for athletes as sports can be very unilateral,
    albeit so can life generally. All in all, you positively wish to implement dumbbells into your
    routine. The only people who really don’t each with dumbbell bench presses are
    newbies who’re doing a really fundamental power program.

    This is because the dumbbell press requires each arm to carry its dumbbell independently, which requires extra strength.
    This action is extra challenging to control and finally ends
    up using more of the stabilizing muscular tissues of the shoulder.

    Selecting a lighter weight helps guarantee you
    possibly can full the train safely. This train is otherwise performed
    in the same way because the incline dumbbell press, but you are urgent
    kettlebells with every hand, rather than dumbbells. The
    finest angle for an incline dumbbell press is about 30 degrees.

    Simply like any other weighted train, you have to
    watch out about its form and technique. Strengthen supporting muscles just like the triceps and shoulders with exercises like dips,
    overhead presses, and cranium crushers. Skipping a
    proper warm-up can lead to poor performance and elevated injury
    threat. Dumbbells are harder to bench normally since you’ve too stabilize two different weights
    independently and with a barbell you are using your two pectoral muscular tissues to push one stabilized weight.

    Following the process above ought to make your
    dumbbell bench press set up much smoother and remove those annoying little neck and
    shoulder tweaks.
    Plant your feet firmly on the floor and brace your abs exhausting to keep your body tight.
    Nonetheless, despite its reputation, the barbell bench press is not with
    out disadvantages. Lifting a bar with each hands means it’s all too simple to press
    more with one arm than the opposite, and a failed rep might leave you badly injured.
    Due to the angle of your physique, incline presses are
    considerably harder to do then flat presses.
    This means you’ll doubtless not be ready to carry as
    a lot weight in an inclined position. Flat dumbbell presses are performed mendacity face-up on your again with your physique parallel to the ground.

    However, before we present you the dumbbell bench press workouts,
    we want to make observe of the necessary thing variations with using dumbbells.

    A respectable dumbbell bench press for the typical
    male beginner is round 45% of physique weight for a single repetition and both dumbbells combined.
    Intermediates and superior lifters should have the flexibility to lift
    around 90% and 130% (respectively) for 1 rep.

    As good as the dumbbell bench press is, should you do it again and again, your muscular tissues
    will quickly adapt, and it will stop being such a productive
    train.
    Note- lifting heavy is beneficial for muscle progress (hypertrophy), but the weight must also be gentle enough for you to lift it with a sluggish and managed kind.
    Bench urgent with dumbbells is compound by nature, and these sorts
    of workouts work greatest in decrease rep ranges.
    In truth, novices usually find the dumbbell bench press hard due to this easy however often-missed form cue.
    Consequently, this will make the dumbbell bench press troublesome and could be a
    cause why your energy requirements are beneath
    common. 5– At the of your set, either decrease the weights
    to the floor or, with your arms bent, just sit back up
    and return to your starting place. Alternatively, in case you
    have spotters close by, permit them to take the weights from you.

    This will depend on your health degree and the program you are following.

    If you’re aiming to develop the upper chest, don’t compete in energy sports
    activities, and wish to restrict stress on the shoulder,  you want to think about the incline bench press.
    Usually an incline bench press is carried out along with your torso at a 30-degree or 45-degree incline.

    A 2020 study discovered that an inclination of 30 degrees is good for activating the higher chest.
    Anything above forty five degrees recruited more anterior delt and
    less chest. Alter the incline for bench variation to sculpt the chest
    region. Embarking on a full-range movement in dumbbell presses ensures
    thorough muscle activation. Modify relaxation intervals to shift
    focus amongst hypertrophy, endurance, or strength-building efforts.

    Make the train tougher by switching out your dumbbells for a set of kettlebells.
    Due to the uneven weight distribution of kettlebells
    (the “bell” portion weighs greater than the handle of the equipment),
    it requires more stability and management to perform the exercise correctly.
    This train will assist you to develop the baseline
    strength required for the motion whereas also starting to have interaction the stabilizing muscles of the shoulders with out isolating every
    shoulder independently. Novices should be in a position to do 1 rep using around 45% of their
    body weight (both dumbbells combined). Intermediates should be capable of carry
    roughly 90% of their body weight, and superior
    lifters approximately 130%.
    Occasionally you’ll discover a mounted bench, however they’re not as in style because the adjustable ones.

    The beneath are standard rep and load ranges for energy,
    energy, hypertrophy, and endurance. Back to chest improvement (as nicely
    as front delt and tricep development)… All in all,
    it’s nice to do each or mix it up throughout your training cycles.

    Life Fit India provides top-quality health club gear online in India.

    The power gained from flat bench press transfers to on an everyday basis activities and sports activities.
    It helps with pushing actions, corresponding to opening doors or pushing
    objects, and improves athletic performance in sports activities like basketball, soccer, and tennis.
    Once you perceive how to do dumbbell bench press, you will want
    to attempt different variations of this exercise. Rotating
    your exercise plan is an effective way to enhance your performance by concentrating on the identical muscles in a different way.
    The flooring press is a bench press variation carried out mendacity on the ground, limiting the range of motion to
    emphasise the triceps and reduce shoulder strain. If you may
    be nervous just ensure you have a spotter there or maybe even use the smith machine despite the fact that that still will not convert well to barbell press.

    References:

    the best Cutting steroid

  3. Many lifters don’t achieve the most effective
    chest stretch because the bar ends the rep when it
    touches the chest. Most people can achieve more horizontal shoulder adduction than what the flat bench permits.
    Moreover, it can take time to load the bar, impacting workout efficiency.

    By doing this, you will ensure your muscles are
    overloaded every session, and thus they’ll continue adapting (getting
    sturdy and bigger). It must be famous that energy, hypertrophy, and endurance shall be gained in every of those
    rep ranges, it’s just the emphasis is as listed
    above. We are all about effectivity, and these exercises should take you
    not extra than 30 minutes to finish. This exercise is similar to the typewriter
    push-up, but instead, you will extend your elbow on each repetition.
    To simplify your coaching even more, I advocate the Dr.
    Muscle app. It customizes your workouts and adjusts based in your progress,
    saving you the guesswork. The most essential factor is to start out slow, listen to your physique, and follow perfect form.

    Neglecting chest coaching days can result in muscle imbalance,
    dangerous posture, motion dysfunction, and potential damage.
    Moreover, the chest is an enormous muscle that boosts calorie burning.
    It Is higher to have one chest day or maybe two chest classes per week.
    If the cable crossover (or cable fly) was the only exercise you do,
    you’ll be restricted in your chest improvement.

    Nevertheless when you do it along with the bench press, you
    get the unique benefits of each workout routines.

    I think the bench press, while in style, has limitations
    that make it less best for constructing a full chest. For one,
    it’s too straightforward on your shoulders and triceps to take over,
    particularly if you’re lifting heavy. I’d argue that incline and dumbbell
    presses engage the chest better and provide you with a more even distribution of muscle pressure.
    The ground press is efficient for energy, notably in the triceps and lockout, nevertheless it limits chest stretch, decreasing its effectiveness for hypertrophy.
    While it’s valuable for chest workout routines for power, I place it in the C tier for muscle progress as a
    outcome of restricted range of motion. The cable press-around fully engages the pecs by crossing the cable over the body’s
    midline. This unique train supplies a different kind of activation and is a
    valuable addition to any chest workout.
    The pectoralis major is a large, thick, fan-shaped muscle positioned on the higher a part of your chest.
    Its name comes from the word pectus, which is the Latin word for breast.
    The underlying muscle, pectoralis minor,
    is far thinner and doesn’t contribute a lot to the scale of your chest.
    Performing a flat dumbbell bench press is an option is you
    are understanding at home and don’t have a bar. Nonetheless the Barbell Bench Press exercise will let you overload extra effectively than the dumbbell variation.
    The incline angle engages the upper fibers of the pectoralis major, which many lifters find challenging to develop.
    Some of the most well-liked barbell chest workouts embrace the incline bench press, flat bench press, close-grip bench press, and reverse-grip bench press.
    Barbell chest presses also work your shoulders and triceps, which is a bonus.
    Performing dumbbell chest workouts with no bench requires athletes to take care of
    a neutral spine whereas they management the weights and utilize a full range of movement.

    This is especially a great movement to choose if you fail your
    bench in the mid-range or contact your bar decrease in your chest.
    You can modify the dumbbell presses similarly to barbell pressing by slowing
    down the tempo, pausing at the chest, or moving the bench into an incline, flat, or decline place.
    Also, in relation to bench press variations, the dumbbell bench press is usually a good different
    for muscle progress. The upper pectoral muscle tissue – known as the Clavicular Pectorals – are
    optimally labored at urgent angles around degrees.

    References:

    natural steroid alternatives

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注