diff --git a/.env.example b/.env.example index 3750098..792e66f 100644 --- a/.env.example +++ b/.env.example @@ -25,4 +25,7 @@ FRANKENPHP_VERSION="dunglas/frankenphp:1.11.2-php8.5" # PHPMyAdmin PHPMYADMIN_IMAGE="phpmyadmin:5.2-apache" -PHPMYADMIN_URL="" \ No newline at end of file +PHPMYADMIN_URL="" + +# Mail Hog +MAILHOG_URL="" \ No newline at end of file diff --git a/docker-compose.mailhog.yml b/docker-compose.mailhog.yml new file mode 100644 index 0000000..cd15fc1 --- /dev/null +++ b/docker-compose.mailhog.yml @@ -0,0 +1,15 @@ +services: + + mailhog: + restart: unless-stopped + container_name: ${CONTAINER_PREFIX}_mailhog + image: mailhog/mailhog:latest + logging: + driver: 'none' + labels: + - traefik.enable=true + - traefik.http.routers.${CONTAINER_PREFIX}_mailhog.rule=Host(`${MAILHOG_URL}`) + - traefik.http.routers.${CONTAINER_PREFIX}_mailhog.entrypoints=websecure + - "traefik.http.services.${CONTAINER_PREFIX}_mailhog.loadbalancer.server.port=8025" + networks: + - frontend \ No newline at end of file