File size: 1,376 Bytes
80833e8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
services:
  main:
    image: agentescapebench-agent:7ff37dd793e1
    build:
      context: ./agent
    networks: [default, puzzle]
    security_opt: [no-new-privileges:true]
    depends_on:
      puzzle:
        condition: service_healthy
  puzzle:
    image: agentescapebench-puzzle:agentescape-10-skeleton-33db7c84-7ff37dd793e1
    build:
      context: ./puzzle
    networks: [puzzle, execution]
    cap_drop: [ALL]
    security_opt: [no-new-privileges:true]
    pids_limit: 64
    mem_limit: 512m
    healthcheck:
      test: [CMD, python, -c, "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
      interval: 1s
      timeout: 3s
      retries: 30
    depends_on:
      worker:
        condition: service_healthy
  worker:
    image: agentescapebench-worker:7ff37dd793e1
    build:
      context: ./puzzle
      dockerfile: worker.Dockerfile
    networks: [execution]
    read_only: true
    tmpfs: ["/tmp:size=64m,mode=1777"]
    cap_drop: [ALL]
    cap_add: [SETUID, SETGID, KILL, CHOWN, DAC_OVERRIDE]
    security_opt: [no-new-privileges:true]
    pids_limit: 64
    mem_limit: 384m
    healthcheck:
      test: [CMD, python, -c, "import urllib.request; urllib.request.urlopen('http://localhost:8001/health')"]
      interval: 1s
      timeout: 3s
      retries: 30
networks:
  puzzle:
    internal: true
  execution:
    internal: true