Open source software you can use to create a beautiful website, blog, or app • https://github.com/wordpress/wordpress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
decentral1se 4eaa4de5ae Merge pull request 'Update wordpress Docker tag to v5.6.2 (master)' (#18) from renovate/master-docker-wordpress-5.x into master 2 days ago
backup.d Remove singlesite config 4 months ago
.drone.yml Update for new SECRET_ naming 2 months ago
.env.sample Move config to abra.sh 2 weeks ago
.gitignore Update for Current Exciting Sep 2020 Best-Practice 5 months ago
LICENSE Init this new WP setup 9 months ago
README.md Add custom abra command to run WP-CLI 2 months ago
abra.sh Move config to abra.sh 2 weeks ago
compose.mailrelay.yml Various un-breaking 4 months ago
compose.yml Update wordpress Docker tag to v5.6.2 2 days ago
entrypoint.mailrelay.sh.tmpl Various un-breaking 4 months ago
entrypoint.sh.tmpl Various un-breaking 4 months ago
msmtp.conf.tmpl Improve email set-up 5 months ago
package.yml Back to using name because we have a test file 4 months ago
renovate.json Add renovate.json 5 months ago
uploads.ini Enable additional PHP extensions 4 months ago

README.md

wordpress

Build Status

Coöp Cloud + Wordpress = 🥳

  1. Set up Docker Swarm and abra
  2. Deploy coop-cloud/traefik
  3. abra app new wordpress
  4. abra app YOURAPPDOMAIN config - be sure to change $DOMAIN to something that resolves to your Docker swarm box
  5. abra app YOURAPPDOMAIN secret auto (optionally with --pass if you'd like to save secrets in pass).
  6. abra app YOURAPPDOMAIN deploy
  7. Open the configured domain in your browser to finish set-up
  8. abra app YOURAPPDOMAIN run app chown www-data:www-data /var/www/html/wp-content to fix file permissions (see #3)

Running WP-CLI

abra app YOURAPPDOMAIN wp 'core check-update --major'

(the WP-CLI arguments need to be quoted, because of how abra handles command-line arguments)

Network (Multi-site)

(Only tested using subdomains)

  1. Set up as above
  2. abra app YOURAPPDOMAIN config, and uncomment the first # Multisite section
  3. abra app YOURAPPDOMAIN deploy
  4. Log into the Wordpress admin dashboard, go to Tools » Network Setup
  5. Don't worry about the suggested file changes
  6. abra app YOURAPPDOMAIN config again - comment out the first # Multisite section in .envrc, uncomment the # Multisite phase 2 section, and add your multisite subdomain(s) to EXTRA_DOMAINS (beware the weird syntax..)
  7. abra app YOURAPPDOMAIN deploy

Installing a custom theme

abra app YOURAPPDOMAIN cp ~/path/to/local/theme wordpress:/var/www/html/wp-content/themes/

Backups

  1. abra app YOURAPPDOMAIN config, and uncomment the export COMPOSE_FILE="compose.yml:compose.backup.yml" line
  2. abra app YOURAPPDOMAIN deploy

Email

  1. Deploy [postfix-relay][cc-postfix-relay]
  2. abra app YOURAPPDOMAIN config, and uncomment the email lines; change MAIL_FROM to make sure the domain is the same as postfix-relay's $DOMAIN or in its $EXTRA_SENDER_DOMAINS
  3. abra app YOURAPPDOMAIN deploy