docker-compose.yml


Overview

The docker-compose.yml file defines and configures the Docker services, networks, and volumes necessary to orchestrate the sandbox executor manager environment. This file primarily facilitates the launching and management of the sandbox-executor-manager service, ensuring it runs with the correct environment variables, networking, resource limits, and health checks. It enables reproducible and streamlined deployment of the sandbox executor manager container, which is likely a core component for managing code execution sandboxes or isolated environments in the system.


Services

sandbox-executor-manager

Description

This service runs the sandbox executor manager container, which presumably manages the lifecycle and execution of sandboxed processes. The container is built from the local ./executor_manager directory using the specified Dockerfile, runs with elevated privileges, and communicates through port 9385. It also exposes a health check endpoint to monitor its status.

Configuration Details


Networks

sandbox-network


Usage Example

To start the sandbox executor manager service using this compose file, run:

docker-compose up -d

This will build the image (if not already built), create the container, and start it in detached mode.

To view logs:

docker-compose logs sandbox-executor-manager

To stop the service:

docker-compose down

Important Implementation Details


Interaction with Other System Components


Visual Diagram

flowchart TD
    A[sandbox-executor-manager Service] -->|Builds from| B[./executor_manager/Dockerfile]
    A -->|Exposes port| C[Host Port 9385]
    A -->|Mounts| D[/var/run/docker.sock]
    A -->|Attached to| E[sandbox-network (bridge)]
    A -->|Uses Env Vars| F[Configuration Parameters]
    A -->|Health Check| G[/healthz Endpoint]
    D -->|Allows| H[Control over Docker Daemon]
    H -->|Manages| I[Sandboxed Containers]
    F -->|Defines| J[Pool Size, Base Images, Memory, Timeout, Seccomp]

Summary

The docker-compose.yml file is a configuration manifest that defines the setup for the sandbox executor manager container within a Docker environment. It ensures the container runs with necessary permissions, resource constraints, and network isolation to manage sandboxed execution effectively. The file leverages environment variables for flexible configuration and includes health monitoring to maintain service reliability. Its integration with the Docker socket and custom base images ties it closely to the broader sandbox execution infrastructure within the system.