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,19 +1,14 @@
|
||||||
version: '3.8'
|
version: '2.7'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
piston_api:
|
piston_api:
|
||||||
build: api
|
build: api
|
||||||
privileged: true
|
cap_add:
|
||||||
|
- CAP_SYS_ADMIN
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 2000:2000
|
- 2000:2000
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/piston:/piston
|
- ./data/piston:/piston
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /piston/jobs:exec
|
- /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