mirror of
https://github.com/cloudmaker97/Discord-Captcha-Verification.git
synced 2025-12-06 01:48:34 +00:00
Support for publishing with docker
This commit is contained in:
parent
c7a5542c9d
commit
05a5052c83
3 changed files with 25 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
config.json
|
config.json
|
||||||
node_modules
|
node_modules
|
||||||
|
package-lock.json
|
||||||
12
README.md
12
README.md
|
|
@ -15,6 +15,18 @@ You need to have [Node.js](https://nodejs.org/en/) and [pnpm](https://pnpm.io/)
|
||||||
4. Fill in the required fields in the `.config.json` file (see [Settings](#settings))
|
4. Fill in the required fields in the `.config.json` file (see [Settings](#settings))
|
||||||
5. Start the bot with `pnpm start`
|
5. Start the bot with `pnpm start`
|
||||||
|
|
||||||
|
### Run with Docker
|
||||||
|
|
||||||
|
You can also run the bot with Docker. You need to have [Docker](https://www.docker.com/) installed.
|
||||||
|
|
||||||
|
1. Clone the repository
|
||||||
|
2. Copy the `config.example.json` file and rename it to `.config.json`
|
||||||
|
3. Fill in the required fields in the `.config.json` file (see [Settings](#settings))
|
||||||
|
4. Run the following command to start the bot: `docker compose up -d.`
|
||||||
|
5. To stop the bot, run the following command: `docker compose down`
|
||||||
|
|
||||||
|
You can set the published ports in the `docker-compose.yml` file.
|
||||||
|
|
||||||
## Settings
|
## Settings
|
||||||
|
|
||||||
These are the settings that need to be filled in the `config.json` file:
|
These are the settings that need to be filled in the `config.json` file:
|
||||||
|
|
|
||||||
11
docker-compose.yml
Normal file
11
docker-compose.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
version: '3'
|
||||||
|
|
||||||
|
services:
|
||||||
|
verification-bot:
|
||||||
|
image: node:latest
|
||||||
|
working_dir: /app
|
||||||
|
volumes:
|
||||||
|
- .:/app
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
command: bash -c "npm install && npm run start"
|
||||||
Loading…
Reference in a new issue