remove switching directories to run docker-compose
This commit is contained in:
parent
ce89382a32
commit
9f304d8fed
|
@ -3,7 +3,7 @@
|
|||
|
||||
source lib/functions.sh
|
||||
|
||||
if ! ./prerequisites.sh; then
|
||||
if ! lib/prerequisites.sh; then
|
||||
log "Prerequisites failed, exiting"
|
||||
exit
|
||||
fi
|
||||
|
@ -11,10 +11,6 @@ source site.conf
|
|||
|
||||
log "Starting bridgehead"
|
||||
|
||||
cd ${project}
|
||||
|
||||
docker-compose --env-file ../site-config/${project}.env up -d
|
||||
|
||||
cd ..
|
||||
docker-compose -f ${project}/docker-compose.yml --env-file site-config/${project}.env up -d
|
||||
|
||||
log "The bridgehead should be in online in a few seconds"
|
||||
|
|
|
@ -5,8 +5,5 @@ source site.conf
|
|||
|
||||
log "Stopping bridgehead"
|
||||
|
||||
cd ${project}
|
||||
docker-compose -f ${project}/docker-compose.yml --env-file site-config/${project}.env down
|
||||
|
||||
docker-compose --env-file ../site-config/${project}.env down
|
||||
|
||||
cd ..
|
||||
|
|
Loading…
Reference in New Issue