Skip to content

Instantly share code, notes, and snippets.

@squio
Created December 27, 2020 15:19
Show Gist options
  • Save squio/ef5e351284fd48c10dcfaf50d0407bf7 to your computer and use it in GitHub Desktop.
Save squio/ef5e351284fd48c10dcfaf50d0407bf7 to your computer and use it in GitHub Desktop.
Quick & dirty installation of Wordpress on RPI 4 using Docker and Docker Compose
version: '3.1'
services:
wordpress:
image: wordpress
restart: always
ports:
- 8080:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
- ./wpdata:/var/www/html
db:
image: jsurf/rpi-mariadb
restart: always
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_RANDOM_ROOT_PASSWORD: '1'
volumes:
- db:/var/lib/mysql
phpmyadmin:
image: ebspace/armhf-phpmyadmin
restart: always
ports:
- 8081:80
environment:
PMA_ARBITRARY: 1
PMA_HOST: db
PMA_USER: wordpress
PMA_PASSWORD: wordpress
volumes:
wordpress:
db:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment