Update DockerExecution config template and add docker-compose file for deployment

This commit is contained in:
Stone_Red
2025-12-30 18:20:00 +01:00
parent ace64b5c25
commit 29c3ee388e
2 changed files with 40 additions and 11 deletions
+12 -11
View File
@@ -10,7 +10,6 @@
// Authentication configuration
"Authentication": {
// List of API keys for authenticating clients
// Each entry should contain key identification and validation information
"ApiKeys": [
// Example:
// {
@@ -44,39 +43,41 @@
// Docker execution configuration (only used when ExecutionEnvironment = "DockerContainer")
"DockerExecution": {
// Docker host URL
// null = uses default Docker client settings
// Linux: "unix:///var/run/docker.sock"
// Windows: "npipe://./pipe/docker_engine"
"DockerHost": "unix:///var/run/docker.sock",
// Default: null
"DockerHost": null,
// Docker worker image name to use for task execution
// Must be built and available on the Docker host
// Default: "remoteexec-worker:latest"
"WorkerImageName": "remoteexec-worker:latest",
// Maximum execution time per container in seconds
// Containers exceeding this time will be forcefully terminated
// Default: 300 (5 minutes)
"ContainerTimeoutSeconds": 300,
// Memory limit per container in MB
// Prevents containers from consuming excessive memory
// Default: 512 MB
"ContainerMemoryLimitMb": 512,
// CPU shares allocated to each container (relative weight)
// Higher values = more CPU priority
// Default: 1024
"ContainerCpuShares": 1024,
// Disable network access in containers for security
// Set to false if tasks require network connectivity
// Default: true
"DisableNetwork": true,
// Make container filesystem read-only
// Enhances security by preventing file modifications
// Default: true
"ReadOnlyFilesystem": true
// Enhances security by preventing file modifications but does not work when additional assemblies are requested at runtime
// Default: false
"ReadOnlyFilesystem": false
},
// Server metrics broadcasting configuration