From 68f88d6df095ee99d091e4e45d95b6a455d9a19d Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 27 Aug 2021 19:43:49 +0200 Subject: [PATCH 1/2] Working on docker doc --- .../documentation/advanced/Deployment.vue | 89 ++++++++++++++++++- 1 file changed, 87 insertions(+), 2 deletions(-) diff --git a/src/templates/modules/documentation/advanced/Deployment.vue b/src/templates/modules/documentation/advanced/Deployment.vue index af9e0e5..d124861 100644 --- a/src/templates/modules/documentation/advanced/Deployment.vue +++ b/src/templates/modules/documentation/advanced/Deployment.vue @@ -41,15 +41,58 @@

Then open a terminal in the root folder of your application and run the following command :

+ +
+

Deploy with Docker

+

Docker is free software for launching applications in isolated containers.

+
+

Learn more:

+ + Docker Documentation + +
+ + + + +

Create a root file named Dockerfile.

+ +

Then open a terminal in the root folder of your application and run the following command :

+ +

Use docker-compose to automate the start command of your bot with the following content :

+ +

Finally, you can run your image inside a container with the following command :

+ + + + + +

To stop the container, run the following command :

+ +

To stop see the log of your discord bot, run the following command :

+ +
From 05c238e0078285a1b4351dbe71b15e53d34ae1ff Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 3 Sep 2021 14:52:50 +0200 Subject: [PATCH 2/2] Remove .env --- src/templates/modules/documentation/advanced/Deployment.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/modules/documentation/advanced/Deployment.vue b/src/templates/modules/documentation/advanced/Deployment.vue index d124861..902e164 100644 --- a/src/templates/modules/documentation/advanced/Deployment.vue +++ b/src/templates/modules/documentation/advanced/Deployment.vue @@ -59,7 +59,7 @@ In the docker section, replace
- [name] with the name of your bot,
- [version] with the version of your bot. (You can use `latest`, `dev`... with docker)
- - [env] with your env file (`.env`, `environment.json` or `environment.yml`) + - [env] with your env file (`environment.json` or `environment.yml`)

Create a root file named Dockerfile.