2021-06-13 08:54:59 +02:00
|
|
|
version: "3.2"
|
2021-03-29 10:41:47 +02:00
|
|
|
|
|
|
|
services:
|
2021-06-13 08:54:59 +02:00
|
|
|
api:
|
|
|
|
build: api
|
|
|
|
container_name: piston_api
|
|
|
|
cap_add:
|
|
|
|
- CAP_SYS_ADMIN
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 2000:2000
|
|
|
|
volumes:
|
|
|
|
- ./data/piston:/piston
|
|
|
|
environment:
|
|
|
|
- PISTON_REPO_URL=http://repo:8000/index
|
|
|
|
tmpfs:
|
|
|
|
- /piston/jobs:exec
|
2021-03-29 10:41:47 +02:00
|
|
|
|
2021-06-13 08:54:59 +02:00
|
|
|
repo: # Local testing of packages
|
|
|
|
build: repo
|
|
|
|
container_name: piston_repo
|
|
|
|
command: ["--no-build"] # Don't build anything
|
|
|
|
volumes:
|
|
|
|
- .:/piston
|