From 59f652e8ffbbfabdb30ab75b8ef11a9532a05ebf Mon Sep 17 00:00:00 2001 From: hcornet Date: Sun, 2 Mar 2025 15:22:54 +0100 Subject: [PATCH] first sync --- README.md | 4 ++++ docker-compose.yml | 55 +++++++++++++++++++++++++--------------------- email.txt | 6 +++++ 3 files changed, 40 insertions(+), 25 deletions(-) create mode 100644 email.txt diff --git a/README.md b/README.md index 42c00df..2f1db83 100644 --- a/README.md +++ b/README.md @@ -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 Buy Me a Coffee at ko-fi.com \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 4054566..62ebcca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" \ No newline at end of file diff --git a/email.txt b/email.txt new file mode 100644 index 0000000..dc6ba37 --- /dev/null +++ b/email.txt @@ -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. \ No newline at end of file