Skip to content

Commit

Permalink
More robust docker restart, Mount migration data
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaczero committed Apr 3, 2024
1 parent ffe4bd5 commit 5afe91f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
git reset --hard "origin/$tag"
echo "Restarting containers"
docker compose down --remove-orphans
TAG="$tag" docker compose --env-file "envs/compose/$tag.env" up -d
echo "Pruning dangling images"
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ services:
- ${LISTEN:-80}:8000

volumes:
- ./.migrate.json:/app/.migrate.json
- ./data/postgres:/app/data/postgres
- /mnt/data/${TAG}/photos:/app/data/photos

0 comments on commit 5afe91f

Please sign in to comment.