deploy: api privilege

This commit is contained in:
Thomas Hobson 2021-02-21 22:53:42 +13:00
parent 64b2882450
commit 72e1eb1457
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ version: '3.8'
services:
piston_api:
build: api
privileged: true
restart: always
ports:
- 6969:6969
@ -17,7 +18,7 @@ services:
build: repo
command: >
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"
'
volumes: