3
3

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

DockerでAdminerを起動してみる

Last updated at Posted at 2020-01-14

環境

AWS Workspace
Amazon Linux2

Adminer 4.7.5
Mariadb 10.4.11

Adminerについて

PHPで作られているデータベース管理ツール
日本語に対応している
phpMyAdminと同様の機能がある

MySQL、MariaDB、PostgreSQL、SQLite、MS SQL、Oracle、
Firebird、SimpleDB、Elasticsearch、MongoDBに対応している

DockerでAdminerを起動

docker-compose.yml
version: '3.7'

services:
  adminer:
    container_name: adminer
    hostname: adminer
    image: adminer:4.7.5
    restart: always
    ports:
      - 8080:8080
    depends_on:
      - db
  db:
    container_name: mariadb
    hostname: mariadb
    image: mariadb:10.4.11
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=password
      - MYSQL_DATABASE=sample
      - MYSQL_USER=user
      - MYSQL_PASSWORD=pass
    volumes:
      - ./mariadb/data:/var/lib/mysql
mkdir -p ./mariadb/data
chmod 777 ./mariadb/data
docker-compose up -d

1.PNG
2.PNG

参考URL

公式サイト

3
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?