Support for publishing with docker

This commit is contained in:
Dennis Heinrich 2024-04-27 03:15:30 +02:00
parent c7a5542c9d
commit 05a5052c83
3 changed files with 25 additions and 1 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
config.json
node_modules
node_modules
package-lock.json

View file

@ -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))
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
These are the settings that need to be filled in the `config.json` file:

11
docker-compose.yml Normal file
View 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"