- Edit or copy the env_file_example
docker run -it -d --env-file=env_file_example -p 0.0.0.0:7000:7000 --restart=always --name=frps whojk/frps-multiuser
FRP_UPDATE
:0/1
, update frp at startupFRP_UPDATE_INTERVAL
FRPS
:0/1
, run frpsFRPS_PORT
FRPS_KCP_PORT
FRPS_MULTIUSER_SERVICE_PORT
FRP_USER_*
FRPC
:0/1
, run frpcFRPC_CONN
FRPC_CONN_PORT
FRPC_USER
FRPC_TOKEN
FRPC_PROTO
FRPC_PROXY_TYPE
FRPC_LOCAL_PORT
FRPC_REMOTE_PORT
You can checkout this example environment variables file: env_file_example
Prepare build kit
# make your computer able to rum arm64 binary
docker run --rm --privileged docker/binfmt:820fdd95a9972a5308930a2bdfb8573dd4447ad3
# enable expremental feature
export DOCKER_CLI_EXPERIMENTAL=enabled
export DOCKER_BUILDKIT=1
docker buildx create --name mybuilder_f --driver docker-container
docker buildx use mybuilder_f
Build
docker buildx build --platform linux/amd64 -t whojk/frps-multiuser . --output="type=docker"
docker push whojk/frps-multiuser
#Test in localhost
docker run -it --rm --env-file=env_file_example --name=frps whojk/frps-multiuser
Build and push to dockerhub
docker buildx build --platform linux/arm64,linux/amd64 -t whojk/frps-multiuser . --push