Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailhog Setup #75

Open
cyildirim opened this issue May 22, 2020 · 2 comments
Open

Mailhog Setup #75

cyildirim opened this issue May 22, 2020 · 2 comments

Comments

@cyildirim
Copy link

How do we approach mailhog setup for dockergento ? If it's something we can go for, i am happy to contribute.

@alainseys
Copy link

@cyildirim

you prob need to create a PR and in the docker-compose.yml you can add the mailhog configuration

mailhog: image: mailhog/mailhog logging: driver: 'none' ports: - "1025:1025" - "8025:8025"

@alainseys
Copy link

How do we approach mailhog setup for dockergento ? If it's something we can go for, i am happy to contribute.

How do we approach mailhog setup for dockergento ? If it's something we can go for, i am happy to contribute.

here you have an example

version: "3.7"

services:
  phpfpm:
    #image: modestcoders/php:7.2-fpm
    build: ./config/dockergento/phpfpm
    volumes: &appvolumes
      - sockdata:/sock
      - ../.composer:/var/www/.composer:delegated
      - ../.composer:/var/www/html/var/composer_home:delegated
      - ./config/dockergento/nginx/conf/default.conf:/var/www/conf/nginx/default.conf:delegated
    environment:
      PHP_IDE_CONFIG: serverName=localhost
    depends_on:
      - db
      - elasticsearch

  nginx:
    image: modestcoders/nginx:1.13
    ports:
      - 80:8000
    volumes: *appvolumes
    depends_on:
      - phpfpm
      - mailhog

  db:
    image: mysql:5.7
    ports:
      - 3306:3306
    environment:
      MYSQL_ROOT_PASSWORD: password
      MYSQL_DATABASE: magento
      MYSQL_USER: magento
      MYSQL_PASSWORD: magento
    volumes:
      - dbdata:/var/lib/mysql

  node:
    image: modestcoders/node-php:node8-php7.2
    ports:
      - 35729:35729
    volumes: *appvolumes
    depends_on:
      - phpfpm

  elasticsearch:
    image: modestcoders/elasticsearch:6.5
    environment:
      - discovery.type=single-node
    volumes:
      - elasticsearch_data:/usr/share/elasticsearch/data

  mailhog:
    image: mailhog/mailhog:latest
    ports:
      - 1025:1025
      - 8025:8025
    logging:
      driver: 'none'
    volumes: *appvolumes
    
volumes:
  dbdata:
  sockdata:
  elasticsearch_data:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants