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-dataall WordPress data goes here.mysql-dataall MariaDB data.
FAQ
How to fix file permissions?
λ ~/wordpress/ docker-compose run wordpress fix-permissionsHow to import current WordPress?
- Copy wordpress folder to
www-dataand executefix-permissions. - 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?
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
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
fork from official repo: php:5.6.14-apache
Contributors
| YuLun Shih | GitHub/imZack | Twitter/@yuluntw |
|---|
