services: workpod-alpine: build: context: ../../ dockerfile: Dockerfile image: workpod-alpine:latest container_name: workpod-alpine hostname: workpod-alpine privileged: true ports: - "2222:22" - "7681:7681" volumes: - ../../data/workspace:/workspace environment: - TZ=${TZ:-Asia/Shanghai} - TERM=xterm-256color - ROOT_PASSWORD=${ROOT_PASSWORD:-workpod123} - TTYD_CREDENTIALS=${TTYD_CREDENTIALS:-jc:1234567} tty: true stdin_open: true logging: driver: json-file options: max-size: "10m" max-file: "3" deploy: resources: limits: memory: 4G reservations: memory: 1G 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 restart: unless-stopped working_dir: /workspace networks: default: name: workpod-alpine-network