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
While Lando does not "officially" support specifying a patch version of this service you can try specifying one using overrides if you need to. This is not guaranteed to work so use at your own risk and take some care to make sure you are using a
debian flavored patch version that also matches up with the
minor versions of the service that we indicate above in "Supported versions".
Here are all the tags that are available for this service.
Here is an example of overriding the
nginx service to use a patched version.
# The name of my app name: patchversion # Give me http://patchversion.lndo.site and https://patchversion.lndo.site proxy: appserver: - patchversion.lndo.site # Configure my services services: # Create an nginx service called "appserver" appserver: # Set this to custom so we can override down the stream type: nginx:custom # SSL ssl: true # Override the image with the patch version # Note that this needs to be a correct namespace on the docker hub overrides: services: image: nginx:1.12.1 # Quick comamnd to check the nginx version tooling: nginx: service: appserver
You can check out the full code for this example over here.
# 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: run_as_root: - 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.