Open source software you can use to create a beautiful website, blog, or app https://github.com/wordpress/wordpress
This repository has been archived on 2021-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Renovate Bot 6b59677976
continuous-integration/drone/pr Build is failing Details
continuous-integration/drone/push Build is failing Details
Update wordpress Docker tag to v5.8.0
2021-07-21 07:03:37 +00:00
.drone.yml Use new image namespace 2021-06-21 12:32:21 +02:00
.env.sample Unbreak mailrelay config 2021-06-02 11:20:24 +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 README formatting 2021-07-11 17:14:52 +02:00
abra.sh Add missing from 2021-06-02 08:36:52 +02:00
compose.mailrelay.yml Unbreak mailrelay config 2021-06-02 11:20:24 +02:00
compose.smtp.yml Fix syntax 2021-06-02 11:22:54 +02:00
compose.yml Update wordpress Docker tag to v5.8.0 2021-07-21 07:03:37 +00:00
entrypoint.mailrelay.sh.tmpl Various un-breaking 2020-10-24 20:13:56 +02:00
entrypoint.sh.tmpl Various un-breaking 2020-10-24 20:13:56 +02:00
msmtp.conf.tmpl Add missing from 2021-06-02 08:36:52 +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 = 🥳

  • Category: Apps
  • Status: ❶💚
  • Image: wordpress, ❶💚, upstream
  • Healthcheck: Yes
  • Backups: Yes
  • Email: ❶💚
  • Tests: ❷💛
  • SSO: No

Basic usage

  1. Set up Docker Swarm and abra
  2. Deploy coop-cloud/traefik
  3. abra app new wordpress --secrets (optionally with --pass if you'd like to save secrets in pass)
  4. abra app YOURAPPDOMAIN config - be sure to change $DOMAIN to something that resolves to your Docker swarm box
  5. abra app YOURAPPDOMAIN deploy
  6. Open the configured domain in your browser to finish set-up
  7. 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/

Email

There is a local or remote SMTP relay configuration available.

  • local: COMPOSE_FILE=compose.yml:compose.mailrelay.yml
  • remote: COMPOSE_FILE=compose.yml:compose.mailrelay.yml:compose.smtp.yml

Below are the instructions for the local relay.

  1. Deploy 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