add docker support and update repository urls
This commit is contained in:
32
Dockerfile
Normal file
32
Dockerfile
Normal file
@@ -0,0 +1,32 @@
|
||||
FROM node:20-slim
|
||||
|
||||
# Install dependencies for Puppeteer/Chrome
|
||||
RUN apt-get update && apt-get install -y \
|
||||
chromium \
|
||||
chromium-sandbox \
|
||||
fonts-ipafont-gothic \
|
||||
fonts-wqy-zenhei \
|
||||
fonts-thai-tlwg \
|
||||
fonts-kacst \
|
||||
fonts-freefont-ttf \
|
||||
libxss1 \
|
||||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Set environment variables for Puppeteer
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
||||
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files and install dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# Copy application files
|
||||
COPY . .
|
||||
|
||||
# Create necessary directories
|
||||
RUN mkdir -p session logs
|
||||
|
||||
CMD ["node", "src/main.js"]
|
||||
@@ -73,7 +73,7 @@ Adicione o número **+55 (16) 99459-1903** aos seus contatos e envie `!many` par
|
||||
|
||||
```bash
|
||||
# 1. Clone o repositório
|
||||
git clone https://github.com/synt-xerror/manybot
|
||||
git clone https://git.maneos.net/synt-xerror/manybot
|
||||
cd manybot
|
||||
|
||||
# 2. Crie o arquivo de configuração
|
||||
|
||||
15
docker-compose.yml
Normal file
15
docker-compose.yml
Normal file
@@ -0,0 +1,15 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
manybot:
|
||||
build: .
|
||||
container_name: manybot
|
||||
volumes:
|
||||
- ./session:/app/session
|
||||
- ./manybot.conf:/app/manybot.conf:ro
|
||||
- ./src/plugins:/app/src/plugins
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
stdin_open: true
|
||||
tty: true
|
||||
restart: unless-stopped
|
||||
@@ -6,18 +6,64 @@ Guia completo de instalação do ManyBot em diferentes plataformas.
|
||||
|
||||
## 📑 Índice
|
||||
|
||||
- [Docker](#docker) (Recomendado)
|
||||
- [Linux](#linux)
|
||||
- [Windows](#windows)
|
||||
- [Termux (Android)](#termux-android)
|
||||
|
||||
---
|
||||
|
||||
## Docker
|
||||
|
||||
A maneira mais fácil e recomendada de rodar o ManyBot.
|
||||
|
||||
### Pré-requisitos
|
||||
|
||||
- [Docker](https://docs.docker.com/get-docker/)
|
||||
- [Docker Compose](https://docs.docker.com/compose/install/)
|
||||
|
||||
### Instalação
|
||||
|
||||
```bash
|
||||
# 1. Clone o repositório
|
||||
git clone https://git.maneos.net/synt-xerror/manybot
|
||||
cd manybot
|
||||
|
||||
# 2. Crie o arquivo de configuração
|
||||
cp manybot.conf.example manybot.conf
|
||||
nano manybot.conf
|
||||
|
||||
# 3. Inicie com Docker
|
||||
docker-compose up -d
|
||||
|
||||
# 4. Veja os logs para escanear o QR Code
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
||||
**Escaneie o QR Code** que aparecerá nos logs.
|
||||
|
||||
### Comandos úteis
|
||||
|
||||
```bash
|
||||
# Ver logs
|
||||
docker-compose logs -f
|
||||
|
||||
# Parar o bot
|
||||
docker-compose down
|
||||
|
||||
# Atualizar
|
||||
git pull
|
||||
docker-compose up --build -d
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Linux
|
||||
|
||||
### 1. Clone o repositório
|
||||
|
||||
```bash
|
||||
git clone https://github.com/synt-xerror/manybot
|
||||
git clone https://git.maneos.net/synt-xerror/manybot
|
||||
cd manybot
|
||||
```
|
||||
|
||||
@@ -105,7 +151,7 @@ pkg update && pkg upgrade
|
||||
pkg install nodejs git
|
||||
|
||||
# Clone e instale
|
||||
git clone https://github.com/synt-xerror/manybot
|
||||
git clone https://git.maneos.net/synt-xerror/manybot
|
||||
cd manybot
|
||||
```
|
||||
|
||||
|
||||
@@ -6,18 +6,64 @@ Complete installation guide for ManyBot on different platforms.
|
||||
|
||||
## Index
|
||||
|
||||
- [Docker](#docker) (Recommended)
|
||||
- [Linux](#linux)
|
||||
- [Windows](#windows)
|
||||
- [Termux (Android)](#termux-android)
|
||||
|
||||
---
|
||||
|
||||
## Docker
|
||||
|
||||
The easiest and recommended way to run ManyBot.
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- [Docker](https://docs.docker.com/get-docker/)
|
||||
- [Docker Compose](https://docs.docker.com/compose/install/)
|
||||
|
||||
### Installation
|
||||
|
||||
```bash
|
||||
# 1. Clone the repository
|
||||
git clone https://git.maneos.net/synt-xerror/manybot
|
||||
cd manybot
|
||||
|
||||
# 2. Create the configuration file
|
||||
cp manybot.conf.example manybot.conf
|
||||
nano manybot.conf
|
||||
|
||||
# 3. Start with Docker
|
||||
docker-compose up -d
|
||||
|
||||
# 4. Watch logs to scan QR Code
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
||||
**Scan the QR Code** that appears in the logs.
|
||||
|
||||
### Useful Commands
|
||||
|
||||
```bash
|
||||
# View logs
|
||||
docker-compose logs -f
|
||||
|
||||
# Stop the bot
|
||||
docker-compose down
|
||||
|
||||
# Update
|
||||
git pull
|
||||
docker-compose up --build -d
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Linux
|
||||
|
||||
### 1. Clone the repository
|
||||
|
||||
```bash
|
||||
git clone https://github.com/synt-xerror/manybot
|
||||
git clone https://git.maneos.net/synt-xerror/manybot
|
||||
cd manybot
|
||||
```
|
||||
|
||||
@@ -105,7 +151,7 @@ pkg update && pkg upgrade
|
||||
pkg install nodejs git
|
||||
|
||||
# Clone and install
|
||||
git clone https://github.com/synt-xerror/manybot
|
||||
git clone https://git.maneos.net/synt-xerror/manybot
|
||||
cd manybot
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user