Skip to content

Commit

Permalink
update deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmostafa committed Feb 13, 2025
1 parent 08b396f commit 8d452aa
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions deploy/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
#!/bin/bash

echo "Stopping existing container.."
dzdo docker stop resdeeds-web
dzdo docker stop resdeeds-api
echo "Stopping existing containers.."
dzdo docker compose stop

echo "Pulling latest image.."
dzdo docker pull ghcr.io/idaholab/resdeeds/web:latest
dzdo docker pull ghcr.io/idaholab/resdeeds/api:latest
dzdo docker compose pull

echo "Launching latest containers"
dzdo docker run -d --rm \
-p 80:80 -p 443:443 \
--name resdeeds-web \
-v ./etc/ssl:/etc/ssl \
-v ./etc/nginx:/etc/nginx/conf.d \
-v /var/log/nginx:/var/log/nginx \
ghcr.io/idaholab/resdeeds/web:latest
dzdo docker run -d --rm \
-p 5000:5000 \
--name resdeeds-api \
--env-file .env \
ghcr.io/idaholab/resdeeds/api:latest
dzdo docker compose up -d

echo "Deployed"

0 comments on commit 8d452aa

Please sign in to comment.