deploy: api privilege
This commit is contained in:
parent
64b2882450
commit
72e1eb1457
|
@ -3,6 +3,7 @@ version: '3.8'
|
||||||
services:
|
services:
|
||||||
piston_api:
|
piston_api:
|
||||||
build: api
|
build: api
|
||||||
|
privileged: true
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 6969:6969
|
- 6969:6969
|
||||||
|
@ -17,7 +18,7 @@ services:
|
||||||
build: repo
|
build: repo
|
||||||
command: >
|
command: >
|
||||||
bash -c '/repo/make.sh &&
|
bash -c '/repo/make.sh &&
|
||||||
curl http://piston_api:6969/repos -XPOST -d "slug=local&url=file:///repo/index.yaml";
|
true || curl http://piston_api:6969/repos -XPOST -d "slug=local&url=file:///repo/index.yaml";
|
||||||
echo -e "\nAn error here is fine, it just means its already added it. Perhaps you restarted this container"
|
echo -e "\nAn error here is fine, it just means its already added it. Perhaps you restarted this container"
|
||||||
'
|
'
|
||||||
volumes:
|
volumes:
|
||||||
|
|
Loading…
Reference in New Issue