remove switching directories to run docker-compose

This commit is contained in:
root 2022-01-11 13:49:36 +01:00
parent ce89382a32
commit 9f304d8fed
2 changed files with 3 additions and 10 deletions

View File

@ -3,7 +3,7 @@
source lib/functions.sh source lib/functions.sh
if ! ./prerequisites.sh; then if ! lib/prerequisites.sh; then
log "Prerequisites failed, exiting" log "Prerequisites failed, exiting"
exit exit
fi fi
@ -11,10 +11,6 @@ source site.conf
log "Starting bridgehead" log "Starting bridgehead"
cd ${project} docker-compose -f ${project}/docker-compose.yml --env-file site-config/${project}.env up -d
docker-compose --env-file ../site-config/${project}.env up -d
cd ..
log "The bridgehead should be in online in a few seconds" log "The bridgehead should be in online in a few seconds"

View File

@ -5,8 +5,5 @@ source site.conf
log "Stopping bridgehead" 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 ..