Ratankumar10/code-execution-engine
0
1version: '3.8'2 3services:4 judge-api:5 build:6 context: .7 dockerfile: Dockerfile8 container_name: judge-api9 ports:10 - "3000:3000"11 volumes:12 # Mount Docker socket so API can create sandbox containers13 - /var/run/docker.sock:/var/run/docker.sock14 # Shared temp directory for execution work dirs15 - /tmp/judge:/tmp/judge16 environment:17 - PORT=300018 - NODE_ENV=production19 - MAX_CONCURRENT=220 - DEFAULT_TIME_LIMIT=521 - DEFAULT_MEMORY_LIMIT=25622 - MAX_TIME_LIMIT=1023 - MAX_MEMORY_LIMIT=51224 - MAX_CODE_SIZE=6553625 - SANDBOX_IMAGE=judge-sandbox26 - TEMP_DIR=/tmp/judge27 - RATE_LIMIT_WINDOW=6000028 - RATE_LIMIT_MAX=3029 restart: unless-stopped30 deploy:31 resources:32 limits:33 memory: 512M34 cpus: '1.0'35 logging:36 driver: json-file37 options:38 max-size: "10m"39 max-file: "3"40 