Public | Automated Build

Last pushed: 2 years ago
Short Description
PHP 5.6 FPM container with Joomla 3.4.3
Full Description

https://hub.docker.com/_/joomla/ Official Joomla Repo

NGINX

The official Joomla! nginx configuration file can be found on the Joomla! wiki at http://docs.joomla.org/Nginx.

##FPM
Example fpm.conf

[global]
error_log = /var/log/php5-fpm.log
daemonize = no

[www]
user = root
group = root

php_admin_value[date.timezone] = 'Europe/Dublin'
php_admin_flag[short_open_tag] = off
php_admin_value[error_log] = /var/log/php5-fpm.log
php_admin_flag[log_errors] = on

listen = [::]:9000
pm = dynamic
pm.max_children = 100
pm.start_servers = 30
pm.min_spare_servers = 10
pm.max_spare_servers = 50

MySQL

Example mysql.cnf

[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

[mysqld_safe]
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
nice            = 0

[mysqld]
user            = root
pid-file        = /var/run/mysqld/mysqld.pid
socket          = /var/run/mysqld/mysqld.sock
port            = 3306
basedir         = /usr
datadir         = /var/lib/mysql
tmpdir          = /tmp
lc-messages-dir = /usr/share/mysql
explicit_defaults_for_timestamp

# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address   = 127.0.0.1

#log-error      = /var/log/mysql/error.log

# Recommended in standard MySQL setup
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# * IMPORTANT: Additional settings that can override those from this file!
#   The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/

##How to use this image via docker-compose

Example docker-compose.yml for joomla-php5.6-fpm:

joomla:
  command: php-fpm --allow-to-run-as-root
  image: buyanov/joomla-php5.6-fpm
  volumes:
    - fpm.conf:/usr/local/etc/php-fpm.conf
  links:
   - mysql
mysql:
  command: mysqld --user=root --verbose
  image: mysql
  volumes:
    - .mysql:/var/lib/mysql
    - mysql.cnf:/etc/mysql/my.cnf
  environment:
    MYSQL_DATABASE: joomla_db
    MYSQL_USER: joomla_user
    MYSQL_PASSWORD: joomla
    MYSQL_ALLOW_EMPTY_PASSWORD: yes
nginx:
  image: nginx
  volumes:
    - nginx.conf:/etc/nginx/conf.d/default.conf
  volumes_from:
    - joomla
  ports:
   - "80:80"
  links:
   - joomla
Docker Pull Command
Owner
buyanov
Source Repository

Comments (0)