Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A quick way to get a WordPress installation up and running with Docker
#!/bin/bash
mkdir wordpress-site && cd wordpress-site
touch docker-compose.yml
cat > docker-compose.yml <<EOL
version: "2"
services:
my-wpdb:
image: mariadb
ports:
- "8081:3306"
environment:
MYSQL_ROOT_PASSWORD: ChangeMeIfYouWant
my-wp:
image: wordpress
volumes:
- ./:/var/www/html
ports:
- "8080:80"
links:
- my-wpdb:mysql
environment:
WORDPRESS_DB_PASSWORD: ChangeMeIfYouWant
EOL
docker-compose up -d
@tremy0207

This comment has been minimized.

Copy link

commented Sep 20, 2017

excellent. how do i increase uploads size ? This is especially needed for large theme files.
Thanks

@p0tt8r

This comment has been minimized.

Copy link

commented Sep 21, 2017

Did anyone else get?

Pulling my-wpdb (mariadb:latest)...
latest: Pulling from library/mariadb
ERROR: no matching manifest for linux/arm in the manifest list entries

@AaronGoldsmith1

This comment has been minimized.

Copy link

commented Aug 23, 2018

Cool thanks!!

@FDiskas

This comment has been minimized.

Copy link

commented Aug 7, 2019

Error: '/var/www/html/' is not writable by current user 🔯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.