blob: be0749764f9c689fdf7cf047337f0abc51fee884 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# Python Discord MongoDB
This folder contains the configuration for Python Discord's MongoDB instance.
## Volume
A 10Gi volume is provisioned on the Linode Block Storage (Retain) storage class.
## Secrets
| Key | Value | Description |
| ---------------------------- | -------------------------- | ------------------------------- |
| `MONGO_INITDB_ROOT_USERNAME` | `pythondiscord` | Username of root user |
| `MONGO_INITDB_ROOT_PASSWORD` | Root password for database | Password for the root user |
## Deployment
The deployment will pull the `mongo:latest` image from DockerHub.
It will mount the created volume at `/data/db`.
It will expose port `27017` to connect to MongoDB.
## Service
A service called `mongodb` will be created to give the deployment a cluster local DNS record of `mongodb.databases.svc.cluster.local`.
|