Commit 9022ceb 1 parent df8fb3f commit 9022ceb Copy full SHA for 9022ceb
File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,29 @@ You only need one of the following requirements:
10
10
- 18.x
11
11
- 20.x
12
12
13
- You need a ` .env ` file, you can copy ` .example.env ` and fill the missing values.
13
+ ### Environment variables
14
+
15
+ This is a description of the needed environment variable for the application at runtime, at least, for the "initialization" step.
16
+
17
+ | Name | Description | Mandatory |
18
+ | -- | -- | -- |
19
+ | TOKEN | Discord Bot token | Yes |
20
+ | MONGO_URI | MongoDB URI connection (see the Docker Compose file for example) | Yes |
21
+ | MONGO_INITDB_ROOT_USERNAME | MongoDB root username | Yes |
22
+ | MONGO_INITDB_ROOT_PASSWORD | MongoDB root password | Yes |
23
+ | MONGO_DATABASE | MongoDB database name | No |
24
+ | LOG_DIR | Application logs directory | No |
14
25
15
26
### Standalone container
16
27
17
28
You can use the ` Dockerfile ` at the project root, but you will need a MongoDB isntance anyway.
29
+ The container will need the above environment variables.
18
30
19
31
### With Docker Compose
20
32
21
- The containers need the following environment variables:
33
+ The production Docker Compose file uses a ` .env ` file, you can create one with the above environment variables.
34
+
35
+ The Docker Compose file need the following environment variables:
22
36
- ` MONGO_INITDB_ROOT_USERNAME `
23
37
- ` MONGO_INITDB_ROOT_PASSWORD `
24
38
You can’t perform that action at this time.
0 commit comments