Skip to content

Commit 035f1c6

Browse files
committed
fix(install): cleanup compose file names
1 parent dd4e7c2 commit 035f1c6

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

install/install_nomad.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ create_nomad_directory(){
227227
}
228228

229229
download_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

290290
start_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

install/management_compose.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

install/uninstall_nomad.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
###################################################################################################################################################################################################
1717

1818
NOMAD_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
# #

install/update_nomad.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ ensure_docker_installed_and_running() {
9595
}
9696

9797
ensure_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

104104
force_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

109109
get_local_ip() {

0 commit comments

Comments
 (0)