invoiceninja / dockerfiles

Docker files for Invoice Ninja
https://hub.docker.com/r/invoiceninja/invoiceninja
GNU General Public License v2.0
419 stars 268 forks source link

[Suggestion] Add mail port to docker-compose.yml #457

Open jordanhinks opened 2 years ago

jordanhinks commented 2 years ago

Very small addition, include the below under docker-compose.yml, this should be placed under ports for nginx server:

# Specify port based on smtp server used, example: 587 for Gmail.
# - "587:587"

The reason for this is because otherwise emails are not able to be sent.

Xenion1987 commented 1 year ago

You could add this by yourself using a docker-compose.override.yml

version: '3.7'

services:
  server:
    ports:
      - "80:80"
      #- "443:443"
      - "587:587"

This allows you to overwrite settings without editing the git tracked file docker-compose.yml

dleidert commented 1 year ago

Why would you have to add port 587 for sending mail? That port is used by the mail server, not by your Invoice Ninja instance. Even if any of the containers would need to talk to each other on port 587, they share the same network and reach each other within this network.