split docker files into prod/dev
This commit is contained in:
parent
be47ab802c
commit
5044bfdfbb
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue