diff --git a/.devilbox/www/htdocs/mailhog.php b/.devilbox/www/htdocs/mailhog.php
new file mode 100644
index 000000000..df2c70b8a
--- /dev/null
+++ b/.devilbox/www/htdocs/mailhog.php
@@ -0,0 +1,127 @@
+
+authPage(); ?>
+
+
+
+
+
+
+ MailHog - Devilbox
+
+
+
+
+ getHead(true); ?>
+
+
+getNavbar(); ?>
+
+
+
+
+
+
+
+
+
+
+
How to Use MailHog
+
+
+
Send Test Emails:
+
+ - Use the form above to send test emails
+ - All emails are caught locally (no internet)
+ - Perfect for development and testing
+
+
+
+
PHP Integration:
+
+ - PHP mail() function works automatically
+ - Configured in
cfg/php-ini-8.2/mailhog.ini
+ - No code changes needed in your projects
+
+
+
+
+
+
+
+ getFooter(); ?>
+
+
+
+
+
diff --git a/.devilbox/www/include/lib/Html.php b/.devilbox/www/include/lib/Html.php
index 8ec66c9ab..2c9dd3d90 100644
--- a/.devilbox/www/include/lib/Html.php
+++ b/.devilbox/www/include/lib/Html.php
@@ -25,6 +25,10 @@ class Html
array(
'name' => 'Emails',
'path' => '/mail.php'
+ ),
+ array(
+ 'name' => 'MailHog',
+ 'path' => '/mailhog.php'
)
),
array(
diff --git a/docker-compose.yml b/docker-compose.yml
index cf658ce6b..7f684e13a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -102,7 +102,7 @@ services:
php:
image: devilbox/php-fpm:${PHP_SERVER}-work-0.150
hostname: php
-
+ restart: always
##
## All .env variables
##
@@ -231,6 +231,7 @@ services:
httpd:
image: devilbox/${HTTPD_SERVER}:${HTTPD_FLAVOUR:-alpine}-1.0
hostname: httpd
+ restart: always
environment:
@@ -343,6 +344,7 @@ services:
mysql:
image: devilbox/mysql:${MYSQL_SERVER}-0.21
hostname: mysql
+ restart: always
environment:
- MYSQL_ROOT_PASSWORD
@@ -380,6 +382,7 @@ services:
pgsql:
image: postgres:${PGSQL_SERVER}
hostname: pgsql
+ restart: always
environment:
@@ -415,6 +418,7 @@ services:
redis:
image: redis:${REDIS_SERVER}
hostname: redis
+ restart: always
# Apply custom arguments to redis startup
command: redis-server ${REDIS_ARGS:- }
@@ -441,6 +445,7 @@ services:
memcd:
image: memcached:${MEMCD_SERVER}
hostname: memcd
+ restart: always
ports:
# [local-machine:]local-port:docker-port
@@ -462,6 +467,7 @@ services:
mongo:
image: mongo:${MONGO_SERVER}
hostname: mongo
+ restart: always
ports:
# [local-machine:]local-port:docker-port