diff --git a/.env.sample b/.env.sample index 752351f..85c02ed 100644 --- a/.env.sample +++ b/.env.sample @@ -16,4 +16,3 @@ AGORA_GIT=https://github.com/flancian/agora # The local path where the Agora root will be cloned if necessary. Agora Bridge writes here, Agora Server (mostly) reads. AGORA_PATH=/home/$AGORA_USER/agora - diff --git a/compose.yml b/compose.yml index f41e81c..b510e0f 100644 --- a/compose.yml +++ b/compose.yml @@ -2,7 +2,7 @@ version: "3.8" services: - server: + app: environment: - AGORA_USER=$AGORA_USER - AGORA_PATH=$AGORA_PATH @@ -59,11 +59,12 @@ $AGORA_PATH $AGORA_PATH - AGORA_GIT=$AGORA_GIT image: git.coopcloud.tech/flancian/agora-bridge + command: | + bash -c + "git clone $AGORA_GIT $AGORA_PATH; + cd $AGORA_PATH && git pull" volumes: - data:$AGORA_PATH - deploy: - restart_policy: - delay: 30s networks: