docker-composer next-terminal
date
Jun 4, 2022
slug
newservice-next-terminal
status
Published
summary
新服务 远程SSH服务
tags
service
type
Post
URL
Summary
- ‣
步骤
mkdir /data/next-terminal; cd /data/next-terminal
cat > docker-compose.yml <<EOF
version: '3.3'
services:
guacd:
image: dushixiang/guacd:1.3.0
volumes:
- ./data:/usr/local/next-terminal/data
restart:
always
next-terminal:
image: dushixiang/next-terminal:latest
container_name: next-terminal
environment:
DB: sqlite
GUACD_HOSTNAME: guacd
GUACD_PORT: 4822
#ports:
# - "9051:8088"
volumes:
- /etc/machine-id:/etc/machine-id
- /etc/localtime:/etc/localtime
- ./data:/usr/local/next-terminal/data
restart:
always
networks:
default:
name: npm_nginx_proxy_manager-network
external: true
反代
location / {
proxy_pass http://next-terminal:8088;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
}


#2
验证

