2020-10-22 10:13:48 +02:00
2020-12-14 11:56:31 +02:00
2021-02-08 16:54:23 +02:00
2021-02-08 16:54:23 +02:00
2020-10-24 20:13:56 +02:00
2020-10-24 20:13:56 +02:00
2020-05-03 00:21:33 +02:00
2020-09-27 21:27:26 +02:00
2020-09-14 20:03:20 +00:00
2020-10-23 04:15:35 +02:00

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
Description
Custom PHP application
Readme 198 KiB
Languages
Shell 100%