- トンネル名, 環境変数に追加すると、カスタムを使用できます (一時的に必要ではありません)
- その他の高度な操作
cpolar.ymlファイルをマウントします。 (マウントするファイル)
- docker-compose.ymlは、eposition コマンドを使用することで、現在のトークンを閲覧しやすくなります。
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