47 lines
868 B
YAML
47 lines
868 B
YAML
services:
|
|
workpod-test:
|
|
image: ae5a15cc0c94
|
|
container_name: workpod-test
|
|
hostname: workpod-test
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "2223:22"
|
|
- "7682:7681"
|
|
|
|
volumes:
|
|
- ../../data/workspace-test:/workspace
|
|
- ../../data/home/test:/root
|
|
|
|
environment:
|
|
- TZ=Asia/Shanghai
|
|
- TERM=xterm-256color
|
|
|
|
deploy:
|
|
resources:
|
|
limits:
|
|
memory: 4G
|
|
reservations:
|
|
memory: 1G
|
|
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: "10m"
|
|
max-file: "3"
|
|
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "netstat -tlnp 2>/dev/null | grep -qE ':(22|7681)\\b' || exit 1"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
start_period: 10s
|
|
retries: 3
|
|
|
|
working_dir: /workspace
|
|
tty: true
|
|
stdin_open: true
|
|
|
|
networks:
|
|
default:
|
|
name: workpod-test-network
|