Update README.md

This commit is contained in:
2025-06-12 14:27:51 +00:00
parent d5111b7fcf
commit 484e58adad

View File

@ -22,7 +22,7 @@
<br> <br>
<h1 align="center">Install Caddy with packages (xcaddy) inside Docker Desktop </h1> <h1 align="center">Install Stalwart Mail Server and protect it with HAProxy (and Caddy) </h1>
<br> <br>
@ -33,10 +33,15 @@
- [Prerequisite](#prerequisite) - [Prerequisite](#prerequisite)
- [Install](#install) - [Install](#install)
- [Configuring docker-compose.yml file](#configuring-docker-composeyml-file) - [Configuring docker-compose.yml file](#configuring-docker-composeyml-file)
- [Configuring .env file](#configuring-env-file) - [Configuring stalwart.yml file](#configuring-stalwartyml-file)
- [Configuring dockerfile.caddy file](#configuring-dockerfilecaddy-file) - [Configuring roundcube.yml file](#configuring-roundcubeyml-file)
- [Stalwart UI First Logon and Configuration](#stalwart-ui-first-logon-and-configuration)
- [Configuring Caddyfile](#configuring-caddyfile) - [Configuring Caddyfile](#configuring-caddyfile)
- [Execute and finish](#execute-and-finish) - [Configuring haproxy.cfg file](#configuring-haproxycfg-file)
- [Configuring Stalwarts TOML file](#configuring-stalwart-toml-file)
- [Stalwart UI SSL and Domain Configuration](#stalwart-ui-ssl-and-domain-configuration)
- [Testing Mail Flow](#testint-mail-flow)
- [Finish](#finish)
<br> <br>
@ -44,7 +49,7 @@
# Prerequisite # Prerequisite
- **Here are all the things you need to make sure you have before starting this tutorial.** **Here are all the things you need to make sure you have before starting this tutorial.**
- **1. You should already have Caddy installed and fully working.** - **1. You should already have Caddy installed and fully working.**
@ -126,12 +131,6 @@
* **This is the dockerfile.caddy file that your docker-compose.yml file will use to create your custom Caddy image.** * **This is the dockerfile.caddy file that your docker-compose.yml file will use to create your custom Caddy image.**
* **Inside this file, we're going to give it some commands to create the image from caddy:builder, include some GitHub packages, attach them to the caddy:latest.**
* **And then once it's built, copy it to a specific directory**
* **When you launch the docker-compose.yml file, it will trigger this file to build your custom image automatically.**
<p align="center"> <p align="center">
<a href="https://tip.jhammah.com"> <a href="https://tip.jhammah.com">
<picture> <picture>
@ -150,14 +149,6 @@
* **This is the Caddyfile. This file tells Caddy what and how to do things.** * **This is the Caddyfile. This file tells Caddy what and how to do things.**
* **Inside of the Caddyfile, I've organized it into three sections. Global, Snippets, and Sites.**
* **In the Global section, you're going to specify some default parameters .**
* **In the Snippets section, you're going to be creating variables and functions that you can import into your websites.**
* **Under the Site section, you will list your websites as well as commands for Caddy to perform on your website.**
<p align="center"> <p align="center">
<a href="https://tip.jhammah.com"> <a href="https://tip.jhammah.com">
<picture> <picture>
@ -170,20 +161,10 @@
<br> <br>
# Execute and finish # Finish
**Once you have all of the files customized to your liking and all four of them are sitting in the same directory, you'll be ready to launch the yml file.** **Once you have all of the files customized to your liking and all four of them are sitting in the same directory, you'll be ready to launch the yml file.**
**You can do this by right-clicking in an empty space in the folder where all your files are located and selecting 'Open in Terminal'.**
**That opens a Powershell window inside that direcotry where you can enter this code to launch everything.**
```ps1
docker-compose up -d
```
**And that's it! Caddy should be live ina Docker container and actively acting as a reverse proxy!**
<br> <br>
<H1 align="center">Support the channel so I can make more tutorials!</h1> <H1 align="center">Support the channel so I can make more tutorials!</h1>