Files
webssh/docker-compose.yml
T
2026-09-28 16:32:15 +08:00

21 lines
611 B
YAML
Executable File

services:
webssh:
build:
context: .
args:
PYTHON_IMAGE: ${PYTHON_IMAGE:-docker.io/python:3.12-slim}
restart: unless-stopped
network_mode: host
environment:
# extra wssh options, e.g. "--maxconn=50 --tdstream=172.18.0.1"
WEBSSH_OPTS: ${WEBSSH_OPTS:---address=}
# set this to keep saved passwords readable across container rebuilds
# when the data volume is recreated; otherwise a secret is generated
# in /data on first start
WEBSSH_COOKIE_SECRET: ${WEBSSH_COOKIE_SECRET:-}
volumes:
- webssh-data:/data
volumes:
webssh-data: