Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ installMagento() {
printf "%-15s%-30s\n" "Backend" $backendURL
printf "%-15s%s: %s\n" "" "Username" ${ADMIN_USERNAME}
printf "%-15s%s: %s\n" "" "Password" ${ADMIN_PASSWORD}
printf "%-15s%-30s\n" "Mails" "http://${hostname}:8025/"

}

Expand Down
5 changes: 5 additions & 0 deletions config/php/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@ RUN cd /tmp/ && git clone https://github.com/xdebug/xdebug.git \
&& touch /usr/local/etc/php/ext-xdebug.ini \
&& rm -r /tmp/xdebug \
&& apt-get purge -y --auto-remove

# Install Mailhog
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install golang-go
RUN mkdir /opt/go && export GOPATH=/opt/go && go get github.com/mailhog/mhsendmail
RUN touch /usr/local/etc/php/mailhog.ini
3 changes: 3 additions & 0 deletions config/php/mailhog.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[mail function]
sendmail_path = "/opt/go/bin/mhsendmail --smtp-addr=mailhog:1025"

9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ services:
- ./config/php/php.ini:/usr/local/etc/php/php.ini
- ./config/php/php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./config/php/ext-xdebug.ini:/usr/local/etc/php/conf.d/ext-xdebug.ini
- ./config/php/mailhog.ini:/usr/local/etc/php/conf.d/mailhog.ini
volumes_from:
- appdata
env_file: .env
Expand Down Expand Up @@ -75,6 +76,14 @@ services:
- front
- back

mailhog:
image: mailhog/mailhog
ports:
- "8025:8025"
networks:
- front
- back

volumes:
magento2mysqldata:
driver: local
Expand Down