Skip to content

Commit 4a24761

Browse files
committed
initial grafana test
1 parent b1038a2 commit 4a24761

File tree

11 files changed

+7486
-0
lines changed

11 files changed

+7486
-0
lines changed

grafana/README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# MongoDB Plugin
2+
3+
Plugin for the [`mongodb`](https://www.nixhub.io/packages/mongodb) package. This plugin configures MonogoDB to use a local config file and data directory for this project, and configures a mongodb service.
4+
5+
## How to Activate
6+
7+
To install MongoDB, run `devbox add mongodb@latest`. We also recommend installing the [`mongosh`](https://nixhub.io/packages/mongosh) client with `devbox add mongosh@latest`.
8+
9+
To activate this plugin, add the following reference to the `include` section of your `devbox.json` file.
10+
11+
```json
12+
13+
"include": [
14+
"github:jetpack-io/devbox-plugins?dir=mongodb"
15+
],
16+
```
17+
18+
## Services
19+
20+
* mongodb
21+
22+
Use `devbox services up mongodb` to start the mongodb server.
23+
24+
## Files
25+
26+
This plugin creates the following helper files:
27+
28+
* **devbox.d/mongodb/mongod.conf** - MongoDB configuration file
29+
* **.devbox/virtenv/mongodb/data** - empty directory for holding your mongodb database
30+
* **.devbox/virtenv/mongodb/process-compose.yaml** - Defines the process to start the MongoDB server
31+
32+
## Environment Variables
33+
34+
This plugin sets the following environment variables:
35+
36+
* **MONGODB_CONFIG** = {{.DevboxDir}}/mongod.conf
37+
* **MONGODB_DATA** = {{.Virtenv}}/data

0 commit comments

Comments
 (0)