Generate WordPress compose from the site list during provision.
Sync runner checkout / sync (push) Successful in 7s

Each host mounts wp-content and gets a compose file from inventory instead of a hand-copied one. Also allow LAN TCP 8020 so abc_voice is reachable through UFW.
This commit is contained in:
westfarn committed 2026-10-08 05:08:16 -05:00
1 parent f4219e2dca
commit 6f05242ca7
12 files changed
+555 -8

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
---
# WordPress sites on every webserver. scripts/provision.sh mounts wp-content
# and writes one compose file per entry. Do not hand-edit /etc/fstab or the
# generated compose file on the hosts.
#
# name: site key. Prod is the short name (relawfirm). Beta is that name
# plus _beta (relawfirm_beta). Names use lowercase, numbers, underscore.
# export: dataset path on the TrueNAS NFS server
# mount: local path compose bind-mounts to /var/www/html/wp-content
# port: host port published to container port 80
# url: public https URL (WP_HOME and WP_SITEURL). Empty skips compose.
#
# From name, provision derives:
# relawfirm -> /opt/apps/wordpress/relawfirm/docker-compose.yml
# project relawfirm_prod, env /opt/apps/env/relawfirm_prod.env
# relawfirm_beta -> /opt/apps/wordpress/relawfirm-beta/docker-compose.yml
# project relawfirm_beta, env /opt/apps/env/relawfirm_beta.env
wordpress_nfs_server: 10.0.0.230
wordpress_nfs_opts: "nfsvers=4,tcp,_netdev"
wordpress_sites:
- name: relawfirm
port: 8021
url: ""
export: /mnt/AIMLOperationsNAS/wordpress/relawfirm
mount: /mnt/wordpress/relawfirm/wp-content
- name: relawfirm_beta
port: 8022
url: ""
export: /mnt/AIMLOperationsNAS/wordpress/relawfirm_beta
mount: /mnt/wordpress/relawfirm_beta/wp-content