Introduce spawner app with sandboxing support and client protocol implementation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
571f43457d
commit
7b1df2607e
26 files changed
+2438
-5
No files matched your search
@@ -0,0 +1,28 @@
|
||||
name: security-command
|
||||
|
||||
services:
|
||||
spawner:
|
||||
image: ${SPAWNER_IMAGE:?run deploy.sh}
|
||||
restart: unless-stopped
|
||||
# 10100 is the group shared with the backend for the spawner socket.
|
||||
user: "10001:10100"
|
||||
group_add:
|
||||
- "${SANDBOX_GROUP_ID:?run deploy.sh}"
|
||||
read_only: true
|
||||
cap_drop: [ALL]
|
||||
security_opt: [no-new-privileges:true]
|
||||
network_mode: none
|
||||
mem_limit: 128m
|
||||
pids_limit: 64
|
||||
environment:
|
||||
SANDBOX_IMAGE: ${SANDBOX_IMAGE:?run deploy.sh}
|
||||
CONTENT_DIR: ${CONTENT_DIR:?set CONTENT_DIR in .env}
|
||||
STATUS_DIR: ${STATUS_DIR:?run deploy.sh}
|
||||
volumes:
|
||||
- /run/docker-sandbox/docker.sock:/run/docker-sandbox/docker.sock
|
||||
- ./runtime/spawner:/run/spawner
|
||||
logging:
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: 10m
|
||||
max-file: "3"
|
||||
Reference in new issue
Block a user