split docker files into prod/dev

This commit is contained in:
Thomas Hobson 2021-03-29 21:41:47 +13:00
parent be47ab802c
commit 5044bfdfbb
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
2 changed files with 24 additions and 9 deletions

20
docker-compose.dev.yaml Normal file
View File

@ -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

View File

@ -1,9 +1,10 @@
version: '3.8'
version: '2.7'
services:
piston_api:
build: api
privileged: true
cap_add:
- CAP_SYS_ADMIN
restart: always
ports:
- 2000:2000
@ -11,9 +12,3 @@ services:
- ./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