{"id":3455,"date":"2021-08-17T21:56:44","date_gmt":"2021-08-17T19:56:44","guid":{"rendered":"https:\/\/www.pschatzmann.ch\/home\/?p=3455"},"modified":"2021-10-13T00:44:47","modified_gmt":"2021-10-12T22:44:47","slug":"setting-up-wordpress-on-a-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/","title":{"rendered":"Setting up WordPress on a Raspberry Pi with Docker Compose"},"content":{"rendered":"<h2>Installation<\/h2>\n<p>I haven&#8217;t set up a new WordPress instance for quite some time. But lately I wanted to run <strong>WordPress on a Rasperry Pi<\/strong>. I used a docker compose file to run all services is one shot with<\/p>\n<ul>\n<li>WordPress <\/li>\n<li>Mariadb and <\/li>\n<li>phpmyadmin. <\/li>\n<\/ul>\n<p>Unfortunately the official mariadb image does not support ARM which is needed by the Raspberry Pi, so Im using <a href=\"https:\/\/hub.docker.com\/r\/jsurf\/rpi-mariadb\">jsurf\/rpi-mariadb<\/a> instead.<\/p>\n<p>Here is the <strong>docker-compose.yml<\/strong> file:<\/p>\n<pre><code>version: '3.6'\n\nservices:\n  wordpress:\n    image: wordpress:5.7.2\n    ports:\n      - 80:80\n    environment:\n      - \"WORDPRESS_DB_USER=root\"\n      - \"WORDPRESS_DB_PASSWORD=vFvpKjJ7HUbkD3wyLDp4\"\n    restart: always\n    dns: 8.8.8.8\n    volumes: \n      - \/srv\/wordpress:\/var\/www\/html\n\n  mysql:\n    image: jsurf\/rpi-mariadb\n    volumes:\n    - \/srv\/wordpress-mysql:\/var\/lib\/mysql\n    environment:\n    - \"MYSQL_ROOT_PASSWORD=vFvpKjJ7HUbkD3wyLDp4\"\n    - \"MYSQL_DATABASE=wordpress\"\n    restart: always\n\n  phpmyadmin:\n    image: phpmyadmin:apache\n    environment:\n     - PMA_ARBITRARY=1\n    restart: always\n    ports:\n     - 9999:80\n    volumes:\n     - \/sessions\n\n<\/code><\/pre>\n<p>You start the solution with <code>docker-compose up -d<\/code>. Now you can set up WordPress by connecting to it with &#8220;http:\/\/your-hostname:80&#8221;<\/p>\n<p>To access <strong>phpmyadmin<\/strong> on port 9999 you need to use<\/p>\n<ul>\n<li>Server: mysql<\/li>\n<li>User: root<\/li>\n<li>Password: vFvpKjJ7HUbkD3wyLDp4<\/li>\n<\/ul>\n<h2>Upgrades<\/h2>\n<p>I am usually relying on the built-in mechanism of WordPress to upgrade the WordPress Release, the Plugins and the Themes, but I think it would be good practise to run a <code>docker pull wordress<\/code> to make sure that we get the latest version of the whole technology stack (e.g. PHP) after each major release upgrade.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installation I haven&#8217;t set up a new WordPress instance for quite some time. But lately I wanted to run WordPress on a Rasperry Pi. I used a docker compose file to run all services is one shot with WordPress Mariadb and phpmyadmin. Unfortunately the official mariadb image does not support [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":243,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3455","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-infrastructure"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Setting up Wordpress on a Raspberry Pi with Docker Compose - Phil Schatzmann<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Setting up Wordpress on a Raspberry Pi with Docker Compose - Phil Schatzmann\" \/>\n<meta property=\"og:description\" content=\"Installation I haven&#8217;t set up a new WordPress instance for quite some time. But lately I wanted to run WordPress on a Rasperry Pi. I used a docker compose file to run all services is one shot with WordPress Mariadb and phpmyadmin. Unfortunately the official mariadb image does not support [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/\" \/>\n<meta property=\"og:site_name\" content=\"Phil Schatzmann\" \/>\n<meta property=\"article:published_time\" content=\"2021-08-17T19:56:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-12T22:44:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2017\/11\/wordpress.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"270\" \/>\n\t<meta property=\"og:image:height\" content=\"187\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"pschatzmann\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pschatzmann\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/\"},\"author\":{\"name\":\"pschatzmann\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"headline\":\"Setting up WordPress on a Raspberry Pi with Docker Compose\",\"datePublished\":\"2021-08-17T19:56:44+00:00\",\"dateModified\":\"2021-10-12T22:44:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/\"},\"wordCount\":170,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/wordpress.jpeg\",\"articleSection\":[\"Infrastructure\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/\",\"name\":\"Setting up Wordpress on a Raspberry Pi with Docker Compose - Phil Schatzmann\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/wordpress.jpeg\",\"datePublished\":\"2021-08-17T19:56:44+00:00\",\"dateModified\":\"2021-10-12T22:44:47+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/wordpress.jpeg\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2017\\\/11\\\/wordpress.jpeg\",\"width\":270,\"height\":187},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/2021\\\/08\\\/17\\\/setting-up-wordpress-on-a-raspberry-pi\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Setting up WordPress on a Raspberry Pi with Docker Compose\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#website\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/\",\"name\":\"Phil Schatzmann Consulting\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/home\\\/#\\\/schema\\\/person\\\/73a53638a4e34e8373405fd737dac9b1\",\"name\":\"pschatzmann\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"url\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"contentUrl\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\",\"width\":305,\"height\":305,\"caption\":\"pschatzmann\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.pschatzmann.ch\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/pschatzmann.png\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Setting up Wordpress on a Raspberry Pi with Docker Compose - Phil Schatzmann","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/","og_locale":"en_US","og_type":"article","og_title":"Setting up Wordpress on a Raspberry Pi with Docker Compose - Phil Schatzmann","og_description":"Installation I haven&#8217;t set up a new WordPress instance for quite some time. But lately I wanted to run WordPress on a Rasperry Pi. I used a docker compose file to run all services is one shot with WordPress Mariadb and phpmyadmin. Unfortunately the official mariadb image does not support [&hellip;]","og_url":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/","og_site_name":"Phil Schatzmann","article_published_time":"2021-08-17T19:56:44+00:00","article_modified_time":"2021-10-12T22:44:47+00:00","og_image":[{"width":270,"height":187,"url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2017\/11\/wordpress.jpeg","type":"image\/jpeg"}],"author":"pschatzmann","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pschatzmann","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#article","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/"},"author":{"name":"pschatzmann","@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"headline":"Setting up WordPress on a Raspberry Pi with Docker Compose","datePublished":"2021-08-17T19:56:44+00:00","dateModified":"2021-10-12T22:44:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/"},"wordCount":170,"commentCount":7,"publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2017\/11\/wordpress.jpeg","articleSection":["Infrastructure"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/","url":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/","name":"Setting up Wordpress on a Raspberry Pi with Docker Compose - Phil Schatzmann","isPartOf":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#primaryimage"},"image":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2017\/11\/wordpress.jpeg","datePublished":"2021-08-17T19:56:44+00:00","dateModified":"2021-10-12T22:44:47+00:00","breadcrumb":{"@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#primaryimage","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2017\/11\/wordpress.jpeg","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2017\/11\/wordpress.jpeg","width":270,"height":187},{"@type":"BreadcrumbList","@id":"https:\/\/www.pschatzmann.ch\/home\/2021\/08\/17\/setting-up-wordpress-on-a-raspberry-pi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.pschatzmann.ch\/home\/"},{"@type":"ListItem","position":2,"name":"Setting up WordPress on a Raspberry Pi with Docker Compose"}]},{"@type":"WebSite","@id":"https:\/\/www.pschatzmann.ch\/home\/#website","url":"https:\/\/www.pschatzmann.ch\/home\/","name":"Phil Schatzmann Consulting","description":"","publisher":{"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.pschatzmann.ch\/home\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.pschatzmann.ch\/home\/#\/schema\/person\/73a53638a4e34e8373405fd737dac9b1","name":"pschatzmann","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","url":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","contentUrl":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png","width":305,"height":305,"caption":"pschatzmann"},"logo":{"@id":"https:\/\/www.pschatzmann.ch\/wp-content\/uploads\/2022\/08\/pschatzmann.png"}}]}},"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/3455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/comments?post=3455"}],"version-history":[{"count":20,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/3455\/revisions"}],"predecessor-version":[{"id":3571,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/posts\/3455\/revisions\/3571"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media\/243"}],"wp:attachment":[{"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/media?parent=3455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/categories?post=3455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.pschatzmann.ch\/home\/wp-json\/wp\/v2\/tags?post=3455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}