mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-03-28 03:29:25 +01:00
fix(install): cleanup compose file names
This commit is contained in:
parent
dd4e7c2c4f
commit
035f1c67b1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
###################################################################################################################################################################################################
|
||||
# #
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user