WordPress Docker Container.
WordPress has an official docker imagae available over at Docker Hub. However this setup below is for ARM, so the database will be switched out for something coompatible with ARM.
Setup
Docker Compose.yml
version: '2.1'
services:
wordpress:
image: wordpress
restart: unless-stopped
ports:
- 8282:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: exampleuser
WORDPRESS_DB_PASSWORD: examplepass
WORDPRESS_DB_NAME: exampledb
volumes:
- /home/wordpress/wordpress:/var/www/html
links:
- db:db
db:
image: yobasystems/alpine-mariadb:latest
restart: always
environment:
MYSQL_DATABASE: exampledb
MYSQL_USER: exampleuser
MYSQL_PASSWORD: examplepass
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- /home/wordpress/db:/var/lib/mysql
volumes:
wordpress:
db:
Related
Links
- https://hub.docker.com/_/wordpress
- https://hub.docker.com/r/yobasystems/alpine-mariadb/dockerfile