Add a new deploy.sh script to automate the deployment process. The script pulls the latest changes from the repository, prompts for the container name and port, and then builds and starts the Docker container using the provided parameters. This simplifies the deployment process and ensures consistency.
7 lines
180 B
Bash
7 lines
180 B
Bash
!/bin/bash
|
|
|
|
git pull
|
|
read -p "Enter the container name: " CONTAINER_NAME
|
|
read -p "Enter the port: " PORT
|
|
PORT=${PORT} CONTAINER_NAME=${CONTAINER_NAME} docker compose up -d --build
|