From 68f88d6df095ee99d091e4e45d95b6a455d9a19d Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Fri, 27 Aug 2021 19:43:49 +0200 Subject: [PATCH] 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 :

+ +