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