Update WebSSH
This commit is contained in:
27
WebSSH
27
WebSSH
@@ -1,13 +1,34 @@
|
|||||||
cat > /boot/1.YAML << 'EOF'
|
cat > /boot/docker-compose.yml << 'EOF'
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
intellissh:
|
intellissh:
|
||||||
image: clusterzx/intellissh:latest
|
image: clusterzx/intellissh:latest
|
||||||
container_name: intellissh
|
container_name: intellissh
|
||||||
|
hostname: intellissh
|
||||||
ports:
|
ports:
|
||||||
- "8080:3000"
|
- "8080:3000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./intellissh-data:/app/server/data
|
- ./intellissh-data:/app/server/data
|
||||||
restart: always
|
environment:
|
||||||
|
- TZ=Asia/Shanghai
|
||||||
|
restart: unless-stopped
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "10m"
|
||||||
|
max-file: "3"
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD", "curl", "-f", "http://localhost:3000/health || exit 1"]
|
||||||
|
interval: 30s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
|
start_period: 40s
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
intellissh-data:
|
||||||
|
driver: local
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p ./intellissh-data && docker compose -f /boot/1.YAML up -d
|
mkdir -p ./intellissh-data && docker compose -f /boot/docker-compose.yml up -d
|
||||||
|
|||||||
Reference in New Issue
Block a user