fix(install): cleanup compose file names

This commit is contained in:
Jake Turner 2025-12-05 15:42:25 -08:00 committed by Jake Turner
parent dd4e7c2c4f
commit 035f1c67b1
4 changed files with 7 additions and 6 deletions

View File

@ -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; then
echo -e "${RED}#${RESET} Failed to start management containers. Please check the logs and try again."
exit 1
fi

View File

@ -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=nomad

View File

@ -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"
###################################################################################################################################################################################################
# #

View File

@ -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 1
fi
}
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() {