Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.27 KB

File metadata and controls

29 lines (20 loc) · 1.27 KB

Operations

Deployment

  • Add the WebApi outbound IP addresses to the MongoDB Atlas network access list.
  • Create a web app in the Firebase project and set its ids in the BlazorApp Firebase:WebAppConfiguration:* settings (see CONTRIBUTING.md).
  • Add the WebApi and BlazorApp domains to Firebase > Authentication > Settings > Authorized domains.
  • Create a GitHub OAuth application for the Firebase GitHub provider.

Database indexes

scripts/mongodb-create-index.js is idempotent, and is re-run after every change to it and after every migration script:

mongosh "mongodb+srv://<user>:<password>@<cluster>.<project>.mongodb.net/<database>" scripts/mongodb-create-index.js

Database backups

docker run --rm -it --workdir=/data --volume "$(pwd)":/data mongo:8.2 mongodump --uri "mongodb+srv://<user>:<password>@<cluster>.<project>.mongodb.net/<database>"
docker run --rm -it --workdir=/data --volume "$(pwd)":/data mongo:8.2 mongorestore --uri "mongodb+srv://<user>:<password>@<cluster>.<project>.mongodb.net"

Container image review

docker run --rm -it --entrypoint /bin/bash <repository>/<image>:<tag>