Wordpress - martikainen87/Home-Automation GitHub Wiki
Wordpress docker container, the image can be found here Wordpress @ Docker HUB
Adding Wordpress to your docker environment
docker create --name teamkabbel --restart=always --link mysql:mysql -e EZ=Europe/Stockholm -e GUID=1000 -e PUID=1000 -p 80:80 -v /Docker/wordpress:/var/www/html/wp-content wordpress:latest
Explanation
docker create --name teamkabbel
Creating the container with the name "wordpress"
--restart=always
Makes the container start on boot
--link mysql:mysql
Linking our container to our MySQL container
-e EZ=Europe/London
Timezone
-e GUID=1000
The ID of our users group
-e PUID=1000
The ID of our user
-p 80:80
external port and internal port
-v /Docker/wordpress:/var/www/html/wp-content
linkin the configuration folder to our host /Docker/wordpress
wordpress:latest
the name of the image with the latest official version.
Configuration
Open your browser and go to http://yourip Follow the guide with creating a site name, username etc.
Exporting and importing from another server
There is a plugin called All-in-one WP migration which is a 1-2-3 plugin to exporting and importing your entire site using only your browser.
There is a really good youtube video on how to do it, All-on-one migration on youtube. The only thing that is bad is a file limit of 500~mb in size, so if you have a site with lots of pictures/movies, this wont work.