1
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 3 years have passed since last update.

laravel sail でadminerを使う

Posted at

#結論
https://qiita.com/59e592291982460/items/a2e8e738c8ff7230b894
注意点:はじめて、sail upする前に.envのDB_PASSWORDを設定しておく。
adminerは、パスワードが設定されていないとログインできない

docker-compose.ymlservicesに以下を追加する。

adminer:
    container_name: adminer
    hostname: adminer
    image: adminer
    restart: always
    ports:
        - 8080:8080
    depends_on:
        - mysql
    networks:
        - sail

sail upをする。
http://localhost:8080/にアクセス。
ログイン画面は以下のように設定

  • サーバはmysql(servicesのmysqlのサービス名)
  • ユーザ名はroot
  • パスワードは自分で設定したもの
1
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
1
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?