diff --git a/setup/docker/docker-compose.yml b/setup/docker/docker-compose.yml index b1de91d..25a95d1 100644 --- a/setup/docker/docker-compose.yml +++ b/setup/docker/docker-compose.yml @@ -1,8 +1,6 @@ services: mantis: - build: - dockerfile: Dockerfile - context: ../../ + image: ghcr.io/phonepe/mantis:latest container_name: mantis restart: on-failure command: sleep infinity @@ -42,9 +40,7 @@ services: - ./stacks:/appsmith-stacks restart: unless-stopped dashboard: - build: - dockerfile: Dockerfile - context: ../../dashboard + image: ghcr.io/phonepe/mantis-dashboard:latest container_name: mantis-dashboard ports: - "8000:8000" diff --git a/setup/docker/docker-setup-macos-experimental.sh b/setup/docker/docker-setup-macos-experimental.sh index 729e74b..11b6a24 100755 --- a/setup/docker/docker-setup-macos-experimental.sh +++ b/setup/docker/docker-setup-macos-experimental.sh @@ -89,14 +89,13 @@ Following are your options: echo -e "${BICyan} 1. Delete all the previously created containers${BYellow} - - Recommended to export the dashboard before deleting Dashboard - - ${BYellow}Recommended to backup the database before deleting MongoDB${BICyan} -2. Delete Mantis, Dashboard and don't delete MongoDB${BYellow} - - Recommended to export the dashboard before deleting Appsmith${BICyan} -3. Delete Mantis, MongoDB and don't delete Dashboard${BYellow} + - Recommended to backup the database before deleting MongoDB${BICyan} +2. Delete Mantis, Dashboard and don't delete MongoDB${BICyan} +3. ${BICyan}Delete Mantis, MongoDB and don't delete Dashboard${BYellow} - Recommended to backup the database before deleting MongoDB https://www.mongodb.com/docs/manual/tutorial/backup-and-restore-tools/${BICyan} 4. Delete Mantis and don't delete Dashboard, MongoDB +${NC} " read -p "What would you like to do? (1/2/3/4): " choice @@ -104,11 +103,13 @@ read -p "What would you like to do? (1/2/3/4): " choice case $choice in 1) echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}" - docker compose down + docker compose down mantis + docker compose down mongodb + docker compose down dashboard ;; 2) echo -e "[-] ${Red}Removing Mantis, Dashboard and retaining MongoDB${NC}" - docker compose down mantis-dashboard + docker compose down dashboard docker compose down mantis ;; 3) diff --git a/setup/docker/docker-setup-macos.sh b/setup/docker/docker-setup-macos.sh index dba780c..09eb448 100755 --- a/setup/docker/docker-setup-macos.sh +++ b/setup/docker/docker-setup-macos.sh @@ -104,7 +104,9 @@ read -p "What would you like to do? (1/2/3/4): " choice case $choice in 1) echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}" - docker compose down + docker compose down mantis + docker compose down mongodb + docker compose down appsmith ;; 2) echo -e "[-] ${Red}Removing Mantis, Appsmith and retaining MongoDB${NC}" @@ -154,7 +156,9 @@ echo -e -n "[?] ${BICyan} Do you have sudo access on the machine? (y/n)? ${NC}" # Install packages -docker compose up --remove-orphans -d --build +docker compose up --remove-orphans -d --build mongodb +docker compose up --remove-orphans -d --build mantis +docker compose up --remove-orphans -d --build appsmith #docker network connect mantis-network appsmith echo -e "${BIYellow}\n\nSETUP SUMMARY${NC}\n" diff --git a/setup/docker/docker-setup-ubuntu-experimental.sh b/setup/docker/docker-setup-ubuntu-experimental.sh index 3b06e5d..bbe9f24 100644 --- a/setup/docker/docker-setup-ubuntu-experimental.sh +++ b/setup/docker/docker-setup-ubuntu-experimental.sh @@ -87,14 +87,12 @@ Following are your options: echo -e "${BICyan} 1. Delete all the previously created containers${BYellow} - - Recommended to export the dashboard before deleting dashboard - - ${BYellow}Recommended to backup the database before deleting MongoDB${BICyan} -2. Delete Mantis,dashboard and don't delete MongoDB - - ${BYellow}Recommended to export the dashboard before deleting dashboard${BICyan} -3. Delete Mantis, MongoDB and don't delete dashboard - - ${BYellow}Recommended to backup the database before deleting MongoDB + - Recommended to backup the database before deleting MongoDB${BICyan} +2. Delete Mantis, Dashboard and don't delete MongoDB${BICyan} +3. ${BICyan}Delete Mantis, MongoDB and don't delete Dashboard${BYellow} + - Recommended to backup the database before deleting MongoDB https://www.mongodb.com/docs/manual/tutorial/backup-and-restore-tools/${BICyan} -4. Delete Mantis and don't delete dashboard, MongoDB +4. Delete Mantis and don't delete Dashboard, MongoDB ${NC} " @@ -103,11 +101,13 @@ read -p "What would you like to do? (1/2/3/4): " choice case $choice in 1) echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}" - sudo docker compose down + sudo docker compose down dashboard + sudo docker compose down mantis + sudo docker compose down mongodb ;; 2) echo -e "[-] ${Red}Removing Mantis, dashboard and retaining MongoDB${NC}" - sudo docker compose down mantis-dashboard + sudo docker compose down dashboard sudo docker compose down mantis ;; 3) diff --git a/setup/docker/docker-setup-ubuntu.sh b/setup/docker/docker-setup-ubuntu.sh index 37d9ba8..b9d3efc 100755 --- a/setup/docker/docker-setup-ubuntu.sh +++ b/setup/docker/docker-setup-ubuntu.sh @@ -103,7 +103,9 @@ read -p "What would you like to do? (1/2/3/4): " choice case $choice in 1) echo -e "[-] ${Red}Removing all the existing containers from Mantis setup${NC}" - sudo docker compose down + sudo docker compose down mantis + sudo docker compose down mongodb + sudo docker compose down appsmith ;; 2) echo -e "[-] ${Red}Removing Mantis, Appsmith and retaining MongoDB${NC}" @@ -149,7 +151,9 @@ echo -e -n "[?] ${BICyan}Do you have sudo access on the machine? (y/n)? ${NC}" # Install packages -sudo docker compose up --remove-orphans -d --build +sudo docker compose up --remove-orphans -d --build mongodb +sudo docker compose up --remove-orphans -d --build mantis +sudo docker compose up --remove-orphans -d --build appsmith echo -e "${BIYellow}\n\nSETUP SUMMARY${NC}\n"