Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

docker-compose.yml 1008B

12345678910111213141516171819202122232425262728293031
  1. services:
  2. sandbox-executor-manager:
  3. container_name: sandbox-executor-manager
  4. build:
  5. context: .
  6. dockerfile: executor_manager/Dockerfile
  7. image: sandbox-executor-manager:latest
  8. runtime: runc
  9. privileged: true
  10. ports:
  11. - "${EXECUTOR_PORT:-9385}:9385"
  12. volumes:
  13. - /var/run/docker.sock:/var/run/docker.sock
  14. networks:
  15. - sandbox-network
  16. restart: always
  17. security_opt:
  18. - no-new-privileges:true
  19. environment:
  20. - SANDBOX_EXECUTOR_MANAGER_POOL_SIZE=${SANDBOX_EXECUTOR_MANAGER_POOL_SIZE:-5}
  21. - SANDBOX_BASE_PYTHON_IMAGE=${SANDBOX_BASE_PYTHON_IMAGE-"sandbox-base-python:latest"}
  22. - SANDBOX_BASE_NODEJS_IMAGE=${SANDBOX_BASE_NODEJS_IMAGE-"sandbox-base-nodejs:latest"}
  23. - SANDBOX_ENABLE_SECCOMP=${SANDBOX_ENABLE_SECCOMP:-false}
  24. healthcheck:
  25. test: ["CMD-SHELL", "curl --fail http://localhost:9385/healthz || exit 1"]
  26. interval: 10s
  27. timeout: 5s
  28. retries: 5
  29. networks:
  30. sandbox-network:
  31. driver: bridge