3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Laravel Sailでmailpitを有効にする

Last updated at Posted at 2024-01-25

お疲れ様ですGroです。

最近Laravel Sailの仕様が変わったのか、情報が少なかったor埋もれていたので備忘録で記事にしておきます。
Sailをデフォルトでインストールすると、どのサービスも選択されていない状態なので、
「Sailを使っていればmailpitが入っているので〜」みたいな記事の通りに動かずつまずきます。

結論、sailのinstall時に、利用するサービスを選択できるのですが、その中にmailpitがありました。

image.png

↓スペースキーで選択すると複数サービスを選択できる

image.png

これで無事docker-compose.ymlにmailpitが入りました。

docker-compose.yml
    mailpit:
        image: 'axllent/mailpit:latest'
        ports:
            - '${FORWARD_MAILPIT_PORT:-1025}:1025'
            - '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025'
        networks:
            - sail
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?