Open source software you can use to create a beautiful website, blog, or app https://github.com/wordpress/wordpress
Go to file
3wc 43cbfafb8a Enable additional PHP extensions 2020-10-23 04:15:35 +02:00
backup.d Remove singlesite config 2020-10-22 10:13:48 +02:00
.drone.yml Add secret generation 2020-09-25 21:04:25 +02:00
.envrc.sample Enable additional PHP extensions 2020-10-23 04:15:35 +02:00
.gitignore Update for Current Exciting Sep 2020 Best-Practice 2020-09-11 01:30:10 +02:00
LICENSE Init this new WP setup 2020-05-03 00:21:33 +02:00
README.md Fix Multisite instructions 2020-10-05 13:10:54 +02:00
compose.mailrelay.yml Enable additional PHP extensions 2020-10-23 04:15:35 +02:00
compose.yml Enable additional PHP extensions 2020-10-23 04:15:35 +02:00
entrypoint.mailrelay.sh.tmpl Enable additional PHP extensions 2020-10-23 04:15:35 +02:00
entrypoint.sh.tmpl Enable additional PHP extensions 2020-10-23 04:15:35 +02:00
msmtp.conf.tmpl Improve email set-up 2020-09-27 21:27:26 +02:00
package.yml Back to using name because we have a test file 2020-10-01 01:21:47 +02:00
renovate.json Add renovate.json 2020-09-14 20:03:20 +00:00
uploads.ini Enable additional PHP extensions 2020-10-23 04:15:35 +02:00

README.md

wordpress

Build Status

Coöp Cloud + Wordpress = 🥳

  1. Set up Docker Swarm and abra
  2. Deploy compose-stacks/traefik
  3. cp .envrc.sample .envrc
  4. Edit .envrc - be sure to change $DOMAIN to something that resolves to your Docker swarm box
  5. direnv allow (or . .envrc)
  6. Generate secrets:
    abra secret_generate db_password v1
    abra secret_generate db_root_password v1
    
  7. abra deploy
  8. Open the configured domain in your browser to finish set-up
  9. abra run wordpress chown www-data:www-data /var/www/html/wp-content to fix file permissions (see #3)

Network (Multi-site)

(Only tested using subdomains)

  1. Set up as above
  2. Uncomment the first # Multisite section in .envrc
  3. direnv allow (or re-run source .envrc)
  4. abra deploy
  5. Log into the Wordpress admin dashboard, go to Tools » Network Setup
  6. Don't worry about the suggested file changes
  7. 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..)
  8. direnv allow (or re-run source .envrc)
  9. abra deploy

Installing a custom theme

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

Backups

  1. Edit .envrc and uncomment the export COMPOSE_FILE="compose.yml:compose.backup.yml" line
  2. direnv allow
  3. abra deploy

Email

  1. Deploy postfix-relay
  2. Edit .envrc 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. direnv allow (or source .envrc)
  4. abra deploy