diff --git a/docker-compose.dev.yaml b/docker-compose.dev.yaml new file mode 100644 index 0000000..cafae5c --- /dev/null +++ b/docker-compose.dev.yaml @@ -0,0 +1,20 @@ +version: '2.7' + +services: + piston_api: + build: api + cap_add: + - CAP_SYS_ADMIN + restart: always + ports: + - 2000:2000 + volumes: + - ./data/piston:/piston + tmpfs: + - /piston/jobs:exec + + piston_fs_repo: # Local testing of packages + build: repo + command: ['dart-2.12.1'] # Only build dart + volumes: + - .:/piston diff --git a/docker-compose.yaml b/docker-compose.yaml index ed67d43..82ec45a 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,19 +1,14 @@ -version: '3.8' +version: '2.7' services: piston_api: build: api - privileged: true + cap_add: + - CAP_SYS_ADMIN restart: always ports: - 2000:2000 volumes: - ./data/piston:/piston tmpfs: - - /piston/jobs:exec - - piston_fs_repo: # Local testing of packages - build: repo - command: ['dart-2.12.1'] # Only build dart - volumes: - - .:/piston + - /piston/jobs:exec \ No newline at end of file