wordpress/README.md

84 lines
2.5 KiB
Markdown
Raw Normal View History

# Wordpress
2020-05-02 22:21:33 +00:00
2023-01-19 23:47:06 +00:00
[![Build Status](https://build.coopcloud.tech/api/badges/coop-cloud/wordpress/status.svg)](https://build.coopcloud.tech/coop-cloud/wordpress)
2020-09-25 13:06:35 +00:00
Coöp Cloud + [Wordpress](https://wordpress.org) = 🥳
<!-- metadata -->
2021-05-10 05:09:52 +00:00
* **Category**: Apps
2021-11-23 10:19:06 +00:00
* **Status**: 3, stable
* **Image**: [`wordpress`](https://hub.docker.com/_/wordpress), 4, upstream
* **Healthcheck**: Yes
* **Backups**: Yes
2021-11-23 10:19:06 +00:00
* **Email**: 3
* **Tests**: 2
* **SSO**: No
2021-05-30 10:58:17 +00:00
<!-- endmetadata -->
2023-03-30 14:57:44 +00:00
## Quick start
* `abra app new wordpress`
* `abra app config <app-name>`
* `abra app secret generate -a <app-name>`
* `abra app deploy <app-name>`
* `abra app cmd <app-name> app core_install`
### Authentik Integration
`abra app config <app-name>`
Configure the following envs:
```
COMPOSE_FILE="$COMPOSE_FILE:compose.authentik.yml"
AUTHENTIK_DOMAIN=authentik.example.com
AUTHENTIK_SECRET_NAME=authentik_example_com_wordpress_secret_v1 # the same as in authentik
AUTHENTIK_ID_NAME=authentik_example_com_wordpress_id_v1 # the same as in authentik
```
`abra app cmd <app-name> app set_authentik`
## Running WP-CLI
2023-03-30 14:57:44 +00:00
`abra app cmd <app-name> app wp -- core check-update --major`
2020-09-14 16:45:17 +00:00
## Network (Multi-site)
_(Only tested using subdomains)_
1. Set up as above
2023-03-30 14:57:44 +00:00
2. `abra app config <app-name>`, and uncomment the first `# Multisite` section
3. `abra app deploy <app-name>`
2020-12-14 10:28:46 +00:00
4. Log into the Wordpress admin dashboard, go to Tools » Network Setup
5. Don't worry about the suggested file changes
2023-03-30 14:57:44 +00:00
6. `abra app config <app-name>` again - comment out the first `# Multisite`
2020-12-14 10:28:46 +00:00
section in `.envrc`, uncomment the `# Multisite phase 2` section, and add
your multisite subdomain(s) to `EXTRA_DOMAINS` (beware the weird syntax..)
2023-03-30 14:57:44 +00:00
7. `abra app deploy <app-name>`
2020-09-14 16:45:17 +00:00
2020-09-14 17:28:31 +00:00
## Installing a custom theme
2023-03-30 14:57:44 +00:00
`abra app cp <app-name> ~/path/to/local/theme wordpress:/var/www/html/wp-content/themes/`
2020-09-14 17:28:31 +00:00
2020-09-27 19:27:08 +00:00
## Email
2021-06-02 09:26:03 +00:00
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`
2021-06-02 09:26:03 +00:00
Below are the instructions for the local relay.
2020-12-14 10:28:46 +00:00
1. Deploy [`postfix-relay`][cc-postfix-relay]
2023-03-30 14:57:44 +00:00
2. `abra app config <app-name>`, and uncomment the email lines; change
2020-12-14 10:28:46 +00:00
`MAIL_FROM` to make sure the domain is the same as `postfix-relay`'s
`$DOMAIN` or in its `$EXTRA_SENDER_DOMAINS`
2023-03-30 14:57:44 +00:00
3. `abra app deploy <app-name>`
2020-09-27 19:27:08 +00:00
[abra]: https://git.autonomic.zone/autonomic-cooperative/abra
2020-12-14 10:28:46 +00:00
[cc-traefik]: https://git.autonomic.zone/coop-cloud/traefik
[cc-postfix-relay]: https://git.autonomic.zone/coop-cloud/traefik