phpMyAdmin

phpMyAdmin is a free software tool written in PHP, intended to handle the administration of MySQL over the Web. You can easily add it to your Lando app by adding an entry to the services key in your app's .lando.yml.

Supported versions

Example

# PhpMyAdmin example
name: pma

# Start with a basic LEMP recipe
recipe: lemp

# Add in a proxy route to phpmyadmin
proxy:
  pma:
    - pma.lemp.lndo.site

# Add in phpmyadmin
services:

  # Override the appsever to add some environment variables and install an extra VIM package
  appserver:
    extras:
      - apt-get update -y
      - apt-get install vim -y
    overrides:
      services:
        environment:
          MYCONFIGVAR1: secretpasscode

  # Add in another database to help with this example
  database2:
    type: mariadb

  # Add a phpmyadmin db frontend
  pma:

    # Use the latest version of phpmyadmin
    type: phpmyadmin

    # The databases you want to look at, this will default to a service called
    # "database"
    #
    # You might want to run `lando info` on your app to see what databases you
    # have available
    hosts:
      - database
      - database2

    # Optionally load in a custom config file. This is relative to the app root
    #
    # You will not need to import the standard library or manage backends in this
    # file. Those are handled automatically.
    #
    # config: config.user.inc.php

    # There are various envvars you can specify to further customize how your
    # pma works.
    #
    # See: https://hub.docker.com/r/phpmyadmin/phpmyadmin/
    #
    # overrides:
      # services:
        # environment:
            # PMA_ARBITRARY: when set to 1 connection to the arbitrary server will be allowed
            # PMA_HOST: define address/host name of the MySQL server
            # PMA_VERBOSE: define verbose name of the MySQL server
            # PMA_PORT: define port of the MySQL server
            # PMA_HOSTS: define comma separated list of address/host names of the MySQL servers
            # PMA_VERBOSES: define comma separated list of verbose names of the MySQL servers
            # PMA_USER: define username to use for config authentication method
            # PMA_PASSWORD: define password to use for config authentication method
            # PMA_ABSOLUTE_URI: define user-facing URI

# Add a lando vim command
tooling:
  vim:
    service: appserver

You will need to rebuild your app with lando rebuild to apply the changes to this file. You can check out the full code for this example over here.

results matching ""

    No results matching ""