Step 1. Make path
sudo mkdir -p /mnt/docker/traefik/traefik
sudo chmod -R 755 /mnt
sudo chown -R rhee:staff /mnt
Step 2. Add /mnt (only macOS)
if you have using macOS
add /mnt path
Step 3. Download docker-compose.yml
docker network create http_network
cd /mnt/docker \
&& curl https://raw.githubusercontent.com/hardware/mailserver/master/docker-compose.sample.yml -o docker-compose.yml \
&& curl https://raw.githubusercontent.com/hardware/mailserver/master/sample.env -o .env \
&& curl https://raw.githubusercontent.com/hardware/mailserver/master/traefik.sample.toml -o traefik/traefik.toml \
&& touch traefik/acme/acme.json \
&& chmod 600 docker-compose.yml .env traefik/traefik.toml traefik/acme/acme.json
Step 4. Run
docker-compose up -d