mirror of
https://github.com/phpmyadmin/docker.git
synced 2026-08-27 18:14:26 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e713caa214 | ||
|
|
cce91f08d4 | ||
|
|
9d0dec3d2e | ||
|
|
563bcafcec | ||
|
|
0bc8b4025b | ||
|
|
812590e038 | ||
|
|
7d6f729bc6 | ||
|
|
593d7f5f96 |
+2
-3
@@ -1,7 +1,6 @@
|
||||
# Switch back to stable once 3.4 is out
|
||||
FROM alpine:edge
|
||||
FROM alpine:latest
|
||||
|
||||
RUN apk add --no-cache php5-cli php5-mysqli php5-ctype php5-xml php5-gd php5-zlib php5-openssl php5-curl php5-opcache php5-json php5-mcrypt curl
|
||||
RUN apk add --no-cache php5-cli php5-mysqli php5-ctype php5-xml php5-gd php5-zlib php5-bz2 php5-zip php5-openssl php5-curl php5-opcache php5-json curl
|
||||
|
||||
RUN curl --location https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz | tar xzf - \
|
||||
&& mv phpMyAdmin* /www \
|
||||
|
||||
@@ -48,9 +48,6 @@ Using the docker-compose.yml from https://github.com/phpmyadmin/docker
|
||||
docker-compose up -d
|
||||
```
|
||||
|
||||
## Usage behind reverse proxys
|
||||
Set the variable ``PMA_ABSOLUTE_URI`` to the fully-qualified path (``https://pma.example.net/``) where the reverse proxy makes phpMyAdmin available.
|
||||
|
||||
## Environment variables summary
|
||||
|
||||
* ``PMA_ARBITRARY`` - when set to 1 connection to the arbitrary server will be allowed
|
||||
@@ -58,7 +55,6 @@ Set the variable ``PMA_ABSOLUTE_URI`` to the fully-qualified path (``https://pma
|
||||
* ``PMA_PORT`` - define port of the MySQL server
|
||||
* ``PMA_HOSTS`` - define comma separated list of address/host names of the MySQL servers
|
||||
* ``PMA_USER`` and ``PMA_PASSWORD`` - define username to use for config authentication method
|
||||
* ``PMA_ABSOLUTE_URI`` - define user-facing URI
|
||||
* ``PHP_UPLOAD_MAX_FILESIZE`` - define upload_max_filesize and post_max_size PHP settings
|
||||
* ``PHP_MAX_INPUT_VARS`` - define max_input_vars PHP setting
|
||||
|
||||
|
||||
+1
-7
@@ -10,7 +10,6 @@ $vars = array(
|
||||
'PMA_PORT',
|
||||
'PMA_USER',
|
||||
'PMA_PASSWORD',
|
||||
'PMA_ABSOLUTE_URI'
|
||||
);
|
||||
foreach ($vars as $var) {
|
||||
if (!isset($_ENV[$var]) && getenv($var)) {
|
||||
@@ -23,11 +22,6 @@ if (isset($_ENV['PMA_ARBITRARY']) && $_ENV['PMA_ARBITRARY'] === '1') {
|
||||
$cfg['AllowArbitraryServer'] = true;
|
||||
}
|
||||
|
||||
/* Play nice behind reverse proxys */
|
||||
if (isset($_ENV['PMA_ABSOLUTE_URI'])) {
|
||||
$cfg['PmaAbsoluteUri'] = trim($_ENV['PMA_ABSOLUTE_URI']);
|
||||
}
|
||||
|
||||
/* Figure out hosts */
|
||||
|
||||
/* Fallback to default linked */
|
||||
@@ -46,7 +40,7 @@ for ($i = 1; isset($hosts[$i - 1]); $i++) {
|
||||
if (isset($_ENV['PMA_PORT'])) {
|
||||
$cfg['Servers'][$i]['port'] = $_ENV['PMA_PORT'];
|
||||
}
|
||||
if (isset($_ENV['PMA_USER'])) {
|
||||
if (isset($_ENV['PMA_USER'])) {
|
||||
$cfg['Servers'][$i]['auth_type'] = 'config';
|
||||
$cfg['Servers'][$i]['user'] = $_ENV['PMA_USER'];
|
||||
$cfg['Servers'][$i]['password'] = isset($_ENV['PMA_PASSWORD']) ? $_ENV['PMA_PASSWORD'] : null;
|
||||
|
||||
Reference in New Issue
Block a user