Skip to content

Commit

Permalink
--restart unless-stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
milon27 committed Dec 17, 2024
1 parent 5dd3c27 commit 5ff6cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/prod-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
docker stop np-server || true
docker rm np-server || true
echo "remove done, rerun again."
docker run -d --name np-server --network np_network -p 4000:4000 ghcr.io/${{ github.repository }}/np-server:latest
docker run -d --name np-server --restart unless-stopped --network np_network -p 4000:4000 ghcr.io/${{ github.repository }}/np-server:latest
echo "cleanup"
sleep 2
docker image prune --all -f
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ services:
redis:
container_name: redis
image: redis:7.4.1-alpine
restart: always
restart: unless-stopped
volumes:
- redis_vol:/data
environment:
Expand Down

0 comments on commit 5ff6cbd

Please sign in to comment.