generated from coop-cloud/example
Actually try a command for the bootstrap step :)
This commit is contained in:
parent
439d80665a
commit
251bcc3330
|
@ -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.
|
# 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
|
AGORA_PATH=/home/$AGORA_USER/agora
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
server:
|
app:
|
||||||
environment:
|
environment:
|
||||||
- AGORA_USER=$AGORA_USER
|
- AGORA_USER=$AGORA_USER
|
||||||
- AGORA_PATH=$AGORA_PATH
|
- AGORA_PATH=$AGORA_PATH
|
||||||
|
@ -59,11 +59,12 @@ $AGORA_PATH
|
||||||
$AGORA_PATH
|
$AGORA_PATH
|
||||||
- AGORA_GIT=$AGORA_GIT
|
- AGORA_GIT=$AGORA_GIT
|
||||||
image: git.coopcloud.tech/flancian/agora-bridge
|
image: git.coopcloud.tech/flancian/agora-bridge
|
||||||
|
command: |
|
||||||
|
bash -c
|
||||||
|
"git clone $AGORA_GIT $AGORA_PATH;
|
||||||
|
cd $AGORA_PATH && git pull"
|
||||||
volumes:
|
volumes:
|
||||||
- data:$AGORA_PATH
|
- data:$AGORA_PATH
|
||||||
deploy:
|
|
||||||
restart_policy:
|
|
||||||
delay: 30s
|
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
|
Loading…
Reference in New Issue