opichon.docker_phpmyadmin
opichon.docker-phpmyadmin
=========
This role sets up phpMyAdmin as a Docker container.
Requirements
You need to have a MySQL server running somewhere.
Role Variables
- phpmyadmin_absolute_uri: The URL for phpMyAdmin.
- phpmyadmin_mysql_hosts: The MySQL servers that phpMyAdmin can connect to.
- phpmyadmin_network: The name of the Docker network that this container should join.
- phpmyadmin_state: Should be set to "started" to run the container.
- phpmyadmin_traefik_frontend_rule: The rule used for Traefik proxy; you can skip this if you're not using Traefik.
- phpmyadmin_traefik_priority: The priority for this host in Traefik; you can also skip this if you're not using Traefik.
Dependencies
Example Playbook
Here's an example of how to use this role, with variables provided:
- hosts: servers
roles:
- name: Deploy phpMyAdmin
role: opichon.docker-phpmyadmin
phpmyadmin_absolute_uri: https://pma.mydomain.com
phpmyadmin_mysql_hosts: [mysql55, mysql56, mysql57]
phpmyadmin_network: default
phpmyadmin_traefik_frontend_rule: "Host:pma.mydomain.com"
License
MIT
Installa
ansible-galaxy install opichon.docker_phpmyadmin
Licenza
mit
Download
341
Proprietario
Entrepreneur & CTO
Since 2003, I have helped SMEs and startups in all their IT-related needs.