This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Bill Maxwell <[email protected]>
- Loading branch information
1 parent
22df23c
commit a0a3094
Showing
2 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# MongoDB External | ||
|
||
This repo is an Acorn for connecting external MongoDB instances to your application through the standardized MongoDB service interface. This allows you to swap out the containerized MongoDB instance for one that is hosted externally. | ||
|
||
## Usage | ||
|
||
This Acorn will prompt the user for the following information: | ||
|
||
- address: the address of the MongoDB server (mongo.example.com) | ||
- port: the port of the MongoDB server (27017) | ||
- username: the username to use to connect to the MongoDB server | ||
- password: the password to use to connect to the MongoDB server | ||
- adminUsername: the username to use to connect to the MongoDB server as an admin | ||
- adminPassword: the password to use to connect to the MongoDB server as an admin | ||
- proto: the protocol to use to connect to the MongoDB server (mongodb or mongodb+srv) | ||
- dbName: the name of the database to use | ||
|
||
This information will be rendered into the Acorn service object. | ||
|
||
If you run | ||
|
||
```bash | ||
acorn run -n mongodb-external ghcr.io/acorn-io/mongodb-external | ||
``` | ||
|
||
It will require you to run: | ||
|
||
```bash | ||
acorn login mongodb-external | ||
``` | ||
|
||
Which is the app name. This will trigger Acorn to prompt you. | ||
|
||
## Examples | ||
|
||
To see how to setup an application to use this Acorn, see the [examples](examples) directory. |