frp
- Version plan
- --cap-add=NET_ADMIN
- Decrease Container Permissions via this configuration (only for network permissions)
- This option is not used (instead of using tini as a container initialization management tool to replace systemd)
- Decrease Container Permissions via this configuration (only for network permissions)
- --cap-add=NET_ADMIN
Quick Start
docker compose up -d
# or
docker-compose up -d
Update Key
# Upload the ssh keys generated by the local computer to the development springboard box (~/.ssh/id_ed25519.pub)
docker exec -it dev-jumpbox bash -c "echo 'ssh-ed25519xxxxxx' > /root/.ssh/authorized_keys"
Environment Variables
# 宿主机执行
export serverAddr='"129.204.8.8"'
# docker-compose.yml对应配置改为
# environment:
# TZ: "Asia/Shanghai"
# serverAddr: ${serverAddr}
Domain Configuration
# dev-jumpbox hosts configuration (/etc/hosts)
# Configure
# extra_hosts:
# # # - "host" by docker compose. ocker.internal:host-gateway"
# - "me. os:host-gateway"
# ssh config(~/.ssh/config)
# The reason why HostName here uses local hostsconfig instead of IP is that we need to use this method in multiple Intranet servers, local hnown_hosts conflicts (~/. sh/know_hosts)
# Host frp.fa.internet.company
# # HostName host.docker.internal
# HostName me. Cost
# User root
# IdentityFile ~/.ssh/id_ed25519_iu
# ProxyJump frp.container6002.fa.internet.company
# Forwardyes Agent