Skip to content

Commit

Permalink
bug 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
pakizheng committed Jan 11, 2024
1 parent 3e25c95 commit 53b520e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ jobs:
sudo apt-get install -y sshpass
sshpass -p "$SERVER_PASSWORD" ssh -o StrictHostKeyChecking=no root@${{ secrets.SERVER_ID }} "
if docker ps -a --format "{{.Names}}" | grep -w "im-web"; then
docker stop im-web
docker rm im-web
docker-compose down
fi
echo '${{ secrets.DOCKERHUB_TOKEN }}' | docker login --username zhengpq --password-stdin
docker pull zhengpq/im-web:latest
docker run -d -p 8000:8000 --name im-web zhengpq/im-web:latest
docker-compose pull
docker-compose pull
"
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

version: "3"

services:
im-web:
image: zhengpq/im-web:latest
container_name: im-web
ports:
- "8000:8000"
network_mode: "host"

0 comments on commit 53b520e

Please sign in to comment.