Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
php
 
 
 
 
 
 

WordPress (Docker on armhf)

Dockerized WordPress image running on armhf platform (ex: Raspberry Pi)

Usage

λ ~/ mkdir wordpress && cd $_
λ ~/wordpress/ wget https://raw.githubusercontent.com/imZack/wordpress-armhf/master/docker-compose/docker-compose.yml
λ ~/wordpress/ docker-compose up

🎉 That's it. Now, just visit http://localhost:8080 🎉

You don't have docker-compose yet? Just hit pip install docker-compose.

Data Persistence

In your docker-compose it will create two folder for you.

  • www-data all WordPress data goes here.
  • mysql-data all MariaDB data.

FAQ

How to fix file permissions?

λ ~/wordpress/ docker-compose run wordpress fix-permissions

How to import current WordPress?

  1. Copy wordpress folder to www-data and execute fix-permissions.
  2. Dump database from current wordpress and import into contianer.

How to increase upload file size (modify php.ini)?

Step 1. Create uploads.ini file with these settings.

file_uploads = On
memory_limit = 128M
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 1800

Step 2. Edit docker-compose.yml, wordpress > volumes append ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini

volumes:
 - ./www-data:/var/www/html
 - ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini

More questions?

create an issue

Images

These images has been built for armhf.

Don't know How to run Docker on Raspberry Pi 2? Check out Hypriot

WordPress

Docker Hub: zack/wordpress-armhf:4.3.1-apache

Dockerfile

fork from official repo: wordpress:4.3.1-apache

MariaDB

Docker Hub: armbuilds/mariadb

Just use pre-build image from armbuilds

PHP

Docker Hub: zack/php-arm:5.6-apache

Dockerfile

fork from official repo: php:5.6.14-apache

Contributors

YuLun ShihGitHub/imZackTwitter/@yuluntw

About

Dockerfiles for WordPress on armhf devices (ex: Raspberry Pi)

Resources

Releases

No releases published

Packages

No packages published