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.
33 lines
1.3 KiB
YAML
33 lines
1.3 KiB
YAML
---
|
|
# 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
|