Dockerfiles for WordPress on armhf devices (ex: Raspberry Pi)
477
Dockerized WordPress image running on armhf platform (ex: Raspberry Pi)
λ ~/ mkdir wordpress && cd $_
λ ~/wordpress/ wget https://raw.githubusercontent.com/imZack/wordpress-armhf/master/docker-compose/docker-compose.yml
λ ~/wordpress/ docker-compose up
:tada: That's it. Now, just visit http://localhost:8080 :tada:
You don't have docker-compose yet? Just hit
pip install docker-compose.
In your docker-compose it will create two folder for you.
www-data all WordPress data goes here.mysql-data all MariaDB data.How to fix file permissions?
λ ~/wordpress/ docker-compose run wordpress fix-permissions
How to import current WordPress?
www-data and execute fix-permissions.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?
These images has been built for armhf.
Don't know How to run Docker on Raspberry Pi 2? Check out Hypriot
Docker Hub: zack/wordpress-armhf:4.3.1-apache
fork from official repo: wordpress:4.3.1-apache
Docker Hub: armbuilds/mariadb
Just use pre-build image from armbuilds
Docker Hub: zack/php-arm:5.6-apache
fork from official repo: php:5.6.14-apache
| YuLun Shih | GitHub/imZack | Twitter/@yuluntw |
Content type
Image
Digest
sha256:184b37145…
Size
155.6 MB
Last updated
almost 11 years ago
docker pull zack/wordpress-armhf:4.3.1-apache