Add nomadro.live English WordPress stack and audience router
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
72
deploy/nomadro-live/wordpress/docker-compose.yml
Normal file
72
deploy/nomadro-live/wordpress/docker-compose.yml
Normal file
@@ -0,0 +1,72 @@
|
||||
# nomadro.live English WordPress (AdSense)
|
||||
# Binds to 127.0.0.1:8089 — do not collide with nomadro.com WP on 8088.
|
||||
|
||||
name: nomadro-live-wp
|
||||
|
||||
services:
|
||||
db:
|
||||
image: mariadb:11.4
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
MYSQL_DATABASE: wordpress
|
||||
MYSQL_USER: wordpress
|
||||
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
volumes:
|
||||
- db_data:/var/lib/mysql
|
||||
healthcheck:
|
||||
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
|
||||
wordpress:
|
||||
image: wordpress:6.8-php8.2-apache
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
db:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "127.0.0.1:8089:80"
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db:3306
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
WORDPRESS_CONFIG_EXTRA: |
|
||||
define('WP_HOME', 'https://nomadro.live');
|
||||
define('WP_SITEURL', 'https://nomadro.live');
|
||||
if (isset($$_SERVER['HTTP_X_FORWARDED_PROTO']) && $$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
|
||||
$$_SERVER['HTTPS'] = 'on';
|
||||
}
|
||||
define('FORCE_SSL_ADMIN', true);
|
||||
volumes:
|
||||
- wp_data:/var/www/html
|
||||
- ./mu-plugins:/var/www/html/wp-content/mu-plugins:ro
|
||||
|
||||
wpcli:
|
||||
image: wordpress:cli-php8.2
|
||||
depends_on:
|
||||
- wordpress
|
||||
environment:
|
||||
WORDPRESS_DB_HOST: db:3306
|
||||
WORDPRESS_DB_USER: wordpress
|
||||
WORDPRESS_DB_PASSWORD: ${MYSQL_PASSWORD}
|
||||
WORDPRESS_DB_NAME: wordpress
|
||||
WORDPRESS_CONFIG_EXTRA: |
|
||||
define('WP_HOME', 'https://nomadro.live');
|
||||
define('WP_SITEURL', 'https://nomadro.live');
|
||||
if (isset($$_SERVER['HTTP_X_FORWARDED_PROTO']) && $$_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https') {
|
||||
$$_SERVER['HTTPS'] = 'on';
|
||||
}
|
||||
volumes:
|
||||
- wp_data:/var/www/html
|
||||
- ./content:/content:ro
|
||||
user: "33:33"
|
||||
entrypoint: ["wp"]
|
||||
command: ["--info"]
|
||||
profiles: ["tools"]
|
||||
|
||||
volumes:
|
||||
db_data:
|
||||
wp_data:
|
||||
Reference in New Issue
Block a user