Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
fix(install): cleanup compose file names
Jake Turner035f1c67b17e
diff --git a/install/install_nomad.sh b/install/install_nomad.shindex c933d0a3..d4ef42ff 100644--- a/install/install_nomad.sh+++ b/install/install_nomad.sh@@ -227,7 +227,7 @@ create_nomad_directory(){}download_management_compose_file() {- local compose_file_path="${NOMAD_DIR}/docker-compose-management.yml"+ local compose_file_path="${NOMAD_DIR}/compose.yml"echo -e "${YELLOW}#${RESET} Downloading docker-compose file for management...\\n"if ! curl -fsSL "$MANAGEMENT_COMPOSE_FILE_URL" -o "$compose_file_path"; then@@ -289,7 +289,7 @@ download_helper_scripts() {start_management_containers() {echo -e "${YELLOW}#${RESET} Starting management containers using docker compose...\\n"- if ! sudo docker compose -f "${NOMAD_DIR}/docker-compose-management.yml" up -d; then+ if ! sudo docker compose -f "${NOMAD_DIR}/compose.yml" up -d; thenecho -e "${RED}#${RESET} Failed to start management containers. Please check the logs and try again."exit 1fidiff --git a/install/management_compose.yaml b/install/management_compose.yamlindex a065068f..b8eac667 100644--- a/install/management_compose.yaml+++ b/install/management_compose.yaml@@ -18,6 +18,7 @@ services:- DRIVE_DISK=fs- APP_KEY=secretlongpasswordsecret- HOST=0.0.0.0+ - URL=$HOST$PORT- DB_HOST=mysql- DB_PORT=3306- DB_DATABASE=nomaddiff --git a/install/uninstall_nomad.sh b/install/uninstall_nomad.shindex 22fb2a8f..a2b959db 100644--- a/install/uninstall_nomad.sh+++ b/install/uninstall_nomad.sh@@ -16,7 +16,7 @@###################################################################################################################################################################################################NOMAD_DIR="/opt/project-nomad"-MANAGEMENT_COMPOSE_FILE="${NOMAD_DIR}/docker-compose-management.yml"+MANAGEMENT_COMPOSE_FILE="${NOMAD_DIR}/compose.yml"#################################################################################################################################################################################################### #diff --git a/install/update_nomad.sh b/install/update_nomad.shindex 75222a71..36fa74f2 100644--- a/install/update_nomad.sh+++ b/install/update_nomad.sh@@ -95,15 +95,15 @@ ensure_docker_installed_and_running() {}ensure_docker_compose_file_exists() {- if [ ! -f "/opt/project-nomad/docker-compose-management.yml" ]; then- echo -e "${RED}#${RESET} docker-compose-management.yml file not found. Please ensure it exists at /opt/project-nomad/docker-compose-management.yml."+ if [ ! -f "/opt/project-nomad/compose.yml" ]; then+ echo -e "${RED}#${RESET} compose.yml file not found. Please ensure it exists at /opt/project-nomad/compose.yml."exit 1fi}force_recreate() {echo -e "${YELLOW}#${RESET} Forcing recreation of containers..."- docker-compose -f /opt/project-nomad/docker-compose-management.yml up -d --force-recreate+ docker-compose -f /opt/project-nomad/compose.yml up -d --force-recreate}get_local_ip() {