Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 472 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 472 Bytes

Fly.io

Mongodb Sample

This is a sample of Mongodb configuration to deploy on Fly.io

Requirements

Logged in to your account using fly auth login.

Follow the steps

1. Create an app

fly apps create <AppName>

2. Set your mongo credentials

fly secrets set MONGO_INITDB_ROOT_USERNAME=<Username> MONGO_INITDB_ROOT_PASSWORD=<Password> MONGO_INITDB_DATABASE=<DbName> --app <AppName>

3.Deploy your files

fly deploy --app <AppName>