Giter Club home page Giter Club logo

Comments (6)

YoRyan avatar YoRyan commented on June 8, 2024

Could I also see your Traefik configuration? I caution that I'm not a Traefik expert, but I'll try to help.

from mailrise.

mrvalterhugo avatar mrvalterhugo commented on June 8, 2024

This is my docker compose

version: "3.5"
services:
  mailrise:
    image: yoryan/mailrise
    container_name: mailrise
    restart: unless-stopped
    volumes:
      - ./mailrise.conf:/etc/mailrise.conf:ro
#    ports:
#      - 8025:8025
    labels:
      traefik.tcp.routers.mailrise.rule: "HostSNI(`*`)"
      traefik.tcp.routers.mailrise.tls: "true"
      traefik.tcp.routers.mailrise.tls.certresolver: "cloudflare"
      traefik.tcp.routers.mailrise.tls.domains[0].main: "mailrise.mydomain.com"
      traefik.tcp.routers.mailrise.tls.domains[0].sans: ""
      traefik.tcp.routers.mailrise.entrypoints: "mailsecure"
    networks:
      - main-network

networks:
  main-network:
    external: true
    name: main-network

from mailrise.

mrvalterhugo avatar mrvalterhugo commented on June 8, 2024

Traefik config:

entryPoints:
  mailsecure:
    address: ":465"

from mailrise.

YoRyan avatar YoRyan commented on June 8, 2024

Hmm, that's pretty much what I have in the Readme sample. I used to run with this configuration, and it did work, but I no longer use it, so I'm just taking shots in the dark.

You could try accessing the Traefik dashboard to see whether your routes are set up correctly.

from mailrise.

mrvalterhugo avatar mrvalterhugo commented on June 8, 2024

Right, I have checked the traefik dashboard and could't see the TCP service.
It seems to work after I added this label:

traefik.enable: true

It's missing from your example config. I think it might be worth adding to your example.

Appreciate your help.

from mailrise.

YoRyan avatar YoRyan commented on June 8, 2024

Glad to hear you worked it out!

(It's my understanding that you don't usually need that label unless you also have exposedByDefault set to false.)

from mailrise.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.