Skip to content

Passing outgoing smtp file with docker-compose #452

@SamTyurenkov

Description

@SamTyurenkov

H,

Is there a way to pass outgoing smtp json without custom docker image?

version: '3'

services:
  mailhog:
    image: mailhog/mailhog
    restart: always
    ports:
      - 1025:1025  # SMTP port for sending emails
      - 8025:8025  # Web UI for viewing emails
    volumes:
      - ./mailhog.cfg.json:/mailhog.cfg.json
    command: ["-outgoing-smtp", "/mailhog.cfg.json"]

If i try it this way, - a directory is created instead of copying a file.
is there a way to pass .json to Mailhog in Docker without creating custom Docker Image?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions