first sync
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 1m0s

This commit is contained in:
Hubert Cornet 2025-03-02 15:22:54 +01:00
parent 61db06d56e
commit 59f652e8ff
3 changed files with 40 additions and 25 deletions

View File

@ -37,5 +37,9 @@ Modification des labels pour traefik
docker compose logs -f
~~~
~~~bash
docker exec -i mailpit-app ./mailpit sendmail < ./email.txt
~~~
# Buy me a coffe
<a href='https://ko-fi.com/R5R2KNI3N' target='_blank'><img height='36' style='border:0px;height:36px;' src='https://storage.ko-fi.com/cdn/kofi4.png?v=3' border='0' alt='Buy Me a Coffee at ko-fi.com' /></a>

View File

@ -2,41 +2,46 @@
networks:
traefik_front_network:
external: true
back_network_:
back_network_mailpit:
driver: bridge
attachable: true
#### SERVICES
services:
### hello_world
hello_world:
container_name: gitea-app
hostname: gitea-app
image: hello-world
environment:
restart: always
networks:
# - back_network_gitea
- traefik_front_network
### mailpit
services:
mailpit:
container_name: mailpit-app
hostname: mailpit-app
image: axllent/mailpit:latest
restart: unless-stopped
volumes:
- ./data:/data
ports:
- 1025:1025
networks:
- traefik_front_network
environment:
MP_MAX_MESSAGES: 5000
TZ: Europe/Paris
# MP_UI_AUTH_FILE: /data/authfile
MP_DATABASE: /data/mailpit.db
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
labels:
- "com.centurylinklabs.watchtower.enable=true"
- "traefik.enable=true"
- "traefik.docker.network=traefik_front_network"
# HTTP
- "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)"
- "traefik.http.routers.hello-world-http.entrypoints=http"
- "traefik.http.routers.hello-world-http.priority=49"
- "traefik.http.routers.mailpit-http.rule=Host(`mailpit.tips-of-mine.com`)"
- "traefik.http.routers.mailpit-http.entrypoints=http"
- "traefik.http.routers.mailpit-http.priority=49"
# HTTPS
- "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)"
- "traefik.http.routers.hello-world-https.entrypoints=https"
- "traefik.http.routers.hello-world-https.tls=true"
- "traefik.http.routers.hello-world-https.priority=50"
- "traefik.http.routers.gitea.service=gitea-https-service"
- "traefik.http.routers.mailpit-https.rule=Host(`mailpit.tips-of-mine.com`)"
- "traefik.http.routers.mailpit-https.entrypoints=https"
- "traefik.http.routers.mailpit-https.tls=true"
- "traefik.http.routers.mailpit-https.priority=50"
- "traefik.http.routers.mailpit.service=mailpit-https-service"
# Middleware
# Service
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000"
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me"
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
- "traefik.http.services.mailpit-https-service.loadbalancer.server.port=8025"

6
email.txt Normal file
View File

@ -0,0 +1,6 @@
From: sender@example.com
To: recipient@example.com
Subject: Email Subject
This is the body of the email.
It can contain multiple lines of text.