Docker support

This commit is contained in:
2026-01-02 21:21:28 -03:00
parent aafeb79e4e
commit 4e650e8592
5 changed files with 154 additions and 8 deletions

View File

@@ -44,24 +44,27 @@ For deployment:
## Installation
TODO: Docker support
### Using Docker (Recommended) TODO
### Using Docker (Recommended)
1. Clone the repository:
1. Create a directory for your configuration:
```bash
git clone https://github.com/ovosimpatico/smtp-loadbalancer.git
cd smtp-loadbalancer
mkdir smtp-loadbalancer && cd smtp-loadbalancer
```
2. Make your `config.json` file based on the [example file](config.example.json)
2. Download the example configuration and docker-compose file:
```bash
curl -O https://raw.githubusercontent.com/ovosimpatico/smtp-loadbalancer/main/config.example.json
curl -O https://raw.githubusercontent.com/ovosimpatico/smtp-loadbalancer/main/docker-compose.yml
```
3. Create your `config.json` file:
```bash
cp config.example.json config.json
nano config.json
```
3. Run the application:
4. Run the application:
```bash
docker compose up -d
```
4. The SMTP server will be listening on port `2525`.
5. The SMTP server will be listening on port `2525`.
### Native Node.js Installation