Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
add phpmyadmin image
Browse files Browse the repository at this point in the history
  • Loading branch information
blauerberg committed Oct 31, 2018
1 parent 8526368 commit f75d1a1
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Example configuration includes the following containers:
| MariaDB | db | <a href="https://hub.docker.com/_/mariadb/" target="_blank">mariadb</a> | 3306 |
| PHP-FPM 5.6 / 7.0 / 7.1 | php | <a href="https://hub.docker.com/r/blauerberg/drupal-php/" target="_blank">blauerberg/drupal-php</a> | |
| mailhog | mailhog | <a href="https://hub.docker.com/r/mailhog/mailhog/" target="_blank">mailhog/mailhog</a> | 8025 (HTTP server) |
| phpmyadmin | phpmyadmin | <a href="https://hub.docker.com/r/phpmyadmin/phpmyadmin/" target="_blank">phpmyadmin/phpmyadmin</a> | 8080 (HTTP server) |

## Prerequisites

Expand Down
1 change: 1 addition & 0 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Drupalの稼働に必要な環境を作っています。
| MariaDB | db | <a href="https://hub.docker.com/_/mariadb/" target="_blank">mariadb</a> | 3306 |
| PHP-FPM 5.6 / 7.0 / 7.1 | php | <a href="https://hub.docker.com/r/blauerberg/drupal-php/" target="_blank">blauerberg/drupal-php</a> | |
| mailhog | mailhog | <a href="https://hub.docker.com/r/mailhog/mailhog/" target="_blank">mailhog/mailhog</a> | 8025 (HTTP server) |
| phpmyadmin | phpmyadmin | <a href="https://hub.docker.com/r/phpmyadmin/phpmyadmin/" target="_blank">phpmyadmin/phpmyadmin</a> | 8080 (HTTP server) |

## 動作環境

Expand Down
15 changes: 15 additions & 0 deletions docker-compose.override-for-docker-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,21 @@ services:
ports:
- "8025:8025"

phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: root
PMA_PORT: 3306
links:
- db
volumes:
- ./phpmyadmin/php-fpm.conf:/etc/php-fpm.conf
ports:
- 8080:80

volumes:
drupal_source:
external: true
15 changes: 15 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,21 @@ services:
ports:
- "8025:8025"

phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: root
PMA_PORT: 3306
links:
- db
volumes:
- ./phpmyadmin/php-fpm.conf:/etc/php-fpm.conf
ports:
- 8080:80

#volumes:
# drupal_source:
# external: true
20 changes: 20 additions & 0 deletions phpmyadmin/php-fpm.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[global]
error_log = /var/log/php-fpm.log
log_level = warning

[www]
user = nobody
group = nogroup
listen = /var/run/php/php-fpm.sock
listen.mode = 0660
chdir = /www
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
catch_workers_output = Yes
clear_env = No
php_value[post_max_size] = 2048M
php_value[upload_max_filesize] = 2048M

0 comments on commit f75d1a1

Please sign in to comment.