Docker containers to develop and run XenForo.
Installed extensions (other than the default ones):
- apcu
- exif
- gd
- gmp
- imagick
- memcached
- mysqli
- opcache
- pcntl
- redis
- soap
- sockets
- xdebug (installed but disabled on php-fpm)
- zip
List of all extensions on php-fpm (according to php -m
):
apcu
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
gmp
hash
iconv
igbinary
json
libxml
mbstring
memcached
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_sqlite
Phar
posix
readline
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib
Zend OPcache
Sample docker-compose.yml
using Apache:
version: "2"
services:
php:
image: xfrocks/xenforo:php-apache
ports:
- "8080:80"
links:
- mysql
volumes:
- .:/var/www/html/
mysql:
image: mysql
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: password
ports:
- "3306:3306"
volumes:
- ./internal_data/mysql:/var/lib/mysql
The apache image doesn't have mod_rewrite enabled, use FallbackResource in .htaccess
if you need XenForo's friendly URLs:
FallbackResource /index.php
The apache image has locales-all
installed for easy development but it's not included in the fpm image.
Click here for installation instructions.
It's recommended to use the fpm image with nginx for better performance in production.