File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ create_nomad_directory(){
227227}
228228
229229download_management_compose_file () {
230- local compose_file_path=" ${NOMAD_DIR} /docker- compose-management .yml"
230+ local compose_file_path=" ${NOMAD_DIR} /compose.yml"
231231
232232 echo -e " ${YELLOW} #${RESET} Downloading docker-compose file for management...\\ n"
233233 if ! curl -fsSL " $MANAGEMENT_COMPOSE_FILE_URL " -o " $compose_file_path " ; then
@@ -289,7 +289,7 @@ download_helper_scripts() {
289289
290290start_management_containers () {
291291 echo -e " ${YELLOW} #${RESET} Starting management containers using docker compose...\\ n"
292- if ! sudo docker compose -f " ${NOMAD_DIR} /docker- compose-management .yml" up -d; then
292+ if ! sudo docker compose -f " ${NOMAD_DIR} /compose.yml" up -d; then
293293 echo -e " ${RED} #${RESET} Failed to start management containers. Please check the logs and try again."
294294 exit 1
295295 fi
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ services:
1818 - DRIVE_DISK=fs
1919 - APP_KEY=secretlongpasswordsecret
2020 - HOST=0.0.0.0
21+ - URL=$HOST$PORT
2122 - DB_HOST=mysql
2223 - DB_PORT=3306
2324 - DB_DATABASE=nomad
Original file line number Diff line number Diff line change 1616# ##################################################################################################################################################################################################
1717
1818NOMAD_DIR=" /opt/project-nomad"
19- MANAGEMENT_COMPOSE_FILE=" ${NOMAD_DIR} /docker- compose-management .yml"
19+ MANAGEMENT_COMPOSE_FILE=" ${NOMAD_DIR} /compose.yml"
2020
2121# ##################################################################################################################################################################################################
2222# #
Original file line number Diff line number Diff line change @@ -95,15 +95,15 @@ ensure_docker_installed_and_running() {
9595}
9696
9797ensure_docker_compose_file_exists () {
98- if [ ! -f " /opt/project-nomad/docker- compose-management .yml" ]; then
99- echo -e " ${RED} #${RESET} docker- compose-management .yml file not found. Please ensure it exists at /opt/project-nomad/docker- compose-management .yml."
98+ if [ ! -f " /opt/project-nomad/compose.yml" ]; then
99+ echo -e " ${RED} #${RESET} compose.yml file not found. Please ensure it exists at /opt/project-nomad/compose.yml."
100100 exit 1
101101 fi
102102}
103103
104104force_recreate () {
105105 echo -e " ${YELLOW} #${RESET} Forcing recreation of containers..."
106- docker-compose -f /opt/project-nomad/docker- compose-management .yml up -d --force-recreate
106+ docker-compose -f /opt/project-nomad/compose.yml up -d --force-recreate
107107}
108108
109109get_local_ip () {
You can’t perform that action at this time.
0 commit comments