Files
rustmailer/docker
rustmailer fa0c5cb66b feat(docker): include license artifacts in Docker image
- Ensure `LICENSE` and `license.html` are included in build artifacts
- Extracted build output into `docker/` as Docker context
- Updated Dockerfile to COPY `LICENSE` and `license.html` into image
- License list generated from accepted SPDX identifiers
2025-07-28 21:41:21 +08:00
..
2025-07-17 22:49:42 +08:00
2025-07-17 22:49:42 +08:00

RustMailer Docker Deployment Guide

Build the Project

First, compile the project using the following command:

./build.sh

Run the Container

There are two ways to start the container:

Method 1: Specify environment variables one by one

sudo docker run -d  -p 15630:15630 -v /sourcecode/rustmailer_data:/data -e RUSTMAILER_ROOT_DIR=/data -u $(id -u youruser):$(id -g yourgroup) rustmailer:1.0.0

Method 2: Use an environment file

docker run -d \
  -v /host/data:/data \
  --env-file env.list \
  rustmailer:1.0.0

###Access the Container Shell

To manually access the shell inside the running container, use:

sudo docker run --rm -it --entrypoint sh rustmailer:1.0.0

Default Ports

RustMailer uses the following default ports:

  • REST API Port: 15630
  • Web UI Port: 15630
  • gRPC Ports: 16630