Skip to content

Commit

Permalink
Merge pull request #43 from hackerspace-ntnu/auto-deploy
Browse files Browse the repository at this point in the history
Set restart policy for deployment
  • Loading branch information
michaelbrusegard authored Sep 23, 2024
2 parents 932286c + 055e6dc commit 02a3606
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ jobs:
git checkout ${{ inputs.branch }}
git pull
docker compose down
docker compose up -d
docker compose up --build -d
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ services:
dockerfile: Dockerfile
ports:
- "3000:3000"
restart: unless-stopped
db:
image: postgres:16
environment:
Expand All @@ -17,6 +18,7 @@ services:
- ./data/db:/var/lib/postgresql/data
ports:
- "5432:5432"
restart: unless-stopped
s3:
image: bitnami/minio:2024
environment:
Expand All @@ -27,3 +29,4 @@ services:
- ./data/s3:/bitnami/minio/data
ports:
- "9000:9000"
restart: unless-stopped

0 comments on commit 02a3606

Please sign in to comment.