All checks were successful
GitOps Automatic Deployment / GitOps Automatic Deployment (push) Successful in 5s
1.3 KiB
1.3 KiB
Purpose
The purpose of this document is to illustrate how to deploy Mailcow in a dockerized format.
!!! note "Assumptions" It is assumed that you are deploying Mailcow into an existing Ubuntu Server environment. If you are using a different operating system, refer to the official documentation.
Setting Up Docker
Go ahead and set up docker and docker-compose with the following commands:
sudo su # (1)
curl -sSL https://get.docker.com/ | CHANNEL=stable sh # (2)
apt install docker-compose-plugin # (3)
systemctl enable --now docker # (4)
- Make yourself root.
- Install
Docker
- Install
Docker-Compose
- Make docker run automatically when the server is booted.
Download and Deploy Mailcow
cd /opt
git clone https://github.com/mailcow/mailcow-dockerized
cd mailcow-dockerized
./generate_config.sh # (1)
docker compose pull # (2)
docker compose up -d
- Generate a configuration file. Use a FQDN (
host.domain.tld
) as hostname when asked. - If you get an error about the ports of the
nginx-mailcow
service in thedocker-compose.yml
stack, change the ports for that service as follows:ports: - "${HTTPS_BIND:-0.0.0.0}:${HTTPS_PORT:-443}:${HTTPS_PORT:-443}" - "${HTTP_BIND:-0.0.0.0}:${HTTP_PORT:-80}:${HTTP_PORT:-80}"