v1.1.0: Alpine 轻量级 Docker 开发环境 + 敏感凭证清理
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
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
|
||||
Reference in New Issue
Block a user