Skip to content

Commit

Permalink
update: make docker autostart & forece recreate on deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
dekiakbar committed Feb 9, 2024
1 parent e2d20b2 commit ed29cab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
script: |
cd image-optimizer
git pull origin master
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --no-deps --build
docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d --no-deps --build --force-recreate
1 change: 1 addition & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: "3"
services:
node:
restart: always
command: bash -c "npm install && npm run build && npm run start:prod"

0 comments on commit ed29cab

Please sign in to comment.