From 72e1eb145784123b960653871d0520813d6be4fa Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 21 Feb 2021 22:53:42 +1300 Subject: [PATCH] deploy: api privilege --- docker-compose.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 5cd8ede..1776a45 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: