Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ravencodess patch 1 #711

Merged
merged 3 commits into from
Jul 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docker/team-deploy/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
frontend:
image: hngdevops/nextjs-boilerplate:dev
ports:
- "${PORT}:3000"
env_file:
- ../../.env
8 changes: 3 additions & 5 deletions scripts/team_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ fi

# Assign arguments to variables for clarity
TEAM_NAME=$1
PORT=$2
export PORT=$2

cd "$(git rev-parse --show-toplevel)"
git pull origin dev
docker pull hngdevops/nextjs-boilerplate:dev
docker stop $TEAM_NAME || true
docker rm $TEAM_NAME -f || true
docker run -d --name "$TEAM_NAME" -p "$PORT:3000" hngdevops/nextjs-boilerplate:dev
docker compose --project-name $TEAM_NAME -f docker/team-deploy/docker-compose.yml up -d
Loading