- Tunnel name, added to environment variable, customizable (temporarily not required)
- Other Advanced Actions
cpolar.yml file is customized by mount (mount configuration file)
- Docker-compose.yml uses with export command, so token is not easy to see
services:
cpolar-ssh:
image: registry.cn-hangzhou.aliyuncs.com/iuin/cpolar-ssh:latest
environment:
- TZ="Asia/Shanghai"
- CPOLAR_AUTH_TOKEN=${CPOLAR_AUTH_TOKEN}
- CPOLAR_CONTANER_SSH_NAME=contaner_ssh_1
restart: unless-stopped
privileged: true
export CPOLAR_AUTH_TOKEN=xxx
docker compose up -d
Host cpolar.internet.company
HostName 3.tcp.cpolar.top
User root
Port 11968
IdentityFile ~/.ssh/id_ed25519_1
ssh cpolar.internet.company