feat: add Playwright support to sysadmin agent stack
- Add Playwright environment variables (artifacts dir, timeouts) - Add playwright_artifacts volume for screenshot/trace storage - Add security_opt: seccomp=unconfined for Chromium sandboxing - Increase memory limit to 1G (Playwright needs ~300-700MB) - Increase CPU limit to 1.5 cores - Remove obsolete version attribute 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5c74f4c023
commit
0b6fa76816
|
|
@ -1,5 +1,3 @@
|
||||||
version: "3.8"
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
agent:
|
agent:
|
||||||
image: code.letsbe.solutions/letsbe/sysadmin-agent:latest
|
image: code.letsbe.solutions/letsbe/sysadmin-agent:latest
|
||||||
|
|
@ -35,6 +33,11 @@ services:
|
||||||
- MAX_FILE_SIZE=${MAX_FILE_SIZE:-10485760}
|
- MAX_FILE_SIZE=${MAX_FILE_SIZE:-10485760}
|
||||||
- SHELL_TIMEOUT=${SHELL_TIMEOUT:-60}
|
- SHELL_TIMEOUT=${SHELL_TIMEOUT:-60}
|
||||||
|
|
||||||
|
# Playwright browser automation
|
||||||
|
- PLAYWRIGHT_ARTIFACTS_DIR=/opt/letsbe/playwright-artifacts
|
||||||
|
- PLAYWRIGHT_DEFAULT_TIMEOUT_MS=60000
|
||||||
|
- PLAYWRIGHT_NAVIGATION_TIMEOUT_MS=120000
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
# Docker socket for container management
|
# Docker socket for container management
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
|
@ -47,22 +50,31 @@ services:
|
||||||
# Credential persistence (survives restarts without re-registration)
|
# Credential persistence (survives restarts without re-registration)
|
||||||
- agent_home:/home/agent/.letsbe-agent
|
- agent_home:/home/agent/.letsbe-agent
|
||||||
|
|
||||||
|
# Playwright artifacts storage
|
||||||
|
- playwright_artifacts:/opt/letsbe/playwright-artifacts
|
||||||
|
|
||||||
|
# Security options for Chromium sandboxing
|
||||||
|
security_opt:
|
||||||
|
- seccomp=unconfined
|
||||||
|
|
||||||
# Run as root for Docker socket access
|
# Run as root for Docker socket access
|
||||||
# TODO: Use Docker group membership instead for better security
|
# TODO: Use Docker group membership instead for better security
|
||||||
user: root
|
user: root
|
||||||
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
# Resource limits
|
# Resource limits (increased for Playwright browser automation)
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpus: '1.0'
|
cpus: '1.5'
|
||||||
memory: 512M
|
memory: 1G
|
||||||
reservations:
|
reservations:
|
||||||
cpus: '0.1'
|
cpus: '0.25'
|
||||||
memory: 128M
|
memory: 256M
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
agent_home:
|
agent_home:
|
||||||
name: {{ customer }}-agent-home
|
name: {{ customer }}-agent-home
|
||||||
|
playwright_artifacts:
|
||||||
|
name: {{ customer }}-playwright-artifacts
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue