Skip to content

Instantly share code, notes, and snippets.

@tatemz
Last active December 29, 2020 17:25
Show Gist options
  • Star 34 You must be signed in to star a gist
  • Fork 24 You must be signed in to fork a gist
  • Save tatemz/504383c921aa5898c49b82d4ee181362 to your computer and use it in GitHub Desktop.
Save tatemz/504383c921aa5898c49b82d4ee181362 to your computer and use it in GitHub Desktop.
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
Copy link

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

@p0tt8r
Copy link

p0tt8r 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
Copy link

Cool thanks!!

@FDiskas
Copy link

FDiskas 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