Skip to content

Commit 23e7bc6

Browse files
Merge pull request #5 from jeffersongoncalves/mailu-update
docs(mailu): add README and .gitignore for configuration guidance
2 parents 683da21 + 97fec74 commit 23e7bc6

File tree

3 files changed

+70
-0
lines changed

3 files changed

+70
-0
lines changed

Applications/mailu/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.env

Applications/mailu/README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# MAILU
2+
3+
Documentação do Mailu
4+
5+
[https://mailu.io/](https://mailu.io/)
6+
7+
## Usage
8+
9+
Ajustar o endpoint do traefik no arquivo docker-compose.yml
10+
11+
```yaml
12+
labels:
13+
- "traefik.enable=true"
14+
- "traefik.http.routers.mail.rule=Host(`mail.seudominio.com`)"
15+
- "traefik.http.routers.mail.entrypoints=websecure"
16+
- "traefik.http.services.mail.loadbalancer.server.port=80"
17+
- "traefik.docker.network=production"
18+
```
19+
20+
Crie o arquivo .env.
21+
22+
```bash
23+
cp .env.example .env
24+
```
25+
26+
```dotenv
27+
# Basic configuration
28+
MAILU_VERSION=1.9
29+
ROOT=/
30+
DOMAIN=seudominio.com
31+
HOSTNAMES=mail.seudominio.com
32+
TLS_FLAVOR=letsencrypt
33+
34+
# Authentication
35+
AUTH_RATELIMIT=10/minute
36+
ADMIN=admin
37+
PASSWORD=senha_segura
38+
39+
# Network
40+
WEBMAIL=roundcube
41+
REDIS_HOST=redis
42+
REDIS_PASSWORD=suaSenhaSeguraAqui
43+
ANTISPAM=none
44+
45+
# Traefik? Use isso para não expor 80/443 diretamente
46+
# Uncomment if using traefik
47+
# FORWARDED_ALLOW_IPS=*
48+
49+
# Optional DKIM
50+
DKIM_SELECTOR=mail
51+
```
52+
53+
## Comands
54+
55+
```bash
56+
docker compose build
57+
```
58+
59+
```bash
60+
docker compose up -d
61+
```
62+
63+
```bash
64+
docker compose down
65+
```
66+
67+
```bash
68+
docker compose rm
69+
```

0 commit comments

Comments
 (0)