26 lines
685 B
YAML
26 lines
685 B
YAML
version: '3.2'
|
|
|
|
services:
|
|
api:
|
|
build: api
|
|
container_name: piston_api
|
|
privileged: true
|
|
restart: always
|
|
ports:
|
|
- 2000:2000
|
|
volumes:
|
|
- ./data/piston/packages:/piston/packages
|
|
tmpfs:
|
|
- /piston/jobs:exec,uid=1000,gid=1000,mode=711
|
|
environment:
|
|
- PISTON_DISABLE_NETWORKING=false
|
|
- PISTON_RUN_CPU_TIME=1000
|
|
- PISTON_LIMIT_OVERRIDES={"c++":{"run_cpu_time":700}}
|
|
|
|
repo: # Local testing of packages
|
|
build: repo
|
|
container_name: piston_repo
|
|
command: ['--no-build'] # Don't build anything
|
|
volumes:
|
|
- .:/piston
|