Added a Docker-based fresh WordPress integration test

This commit is contained in:
2026-05-31 13:15:43 +03:30
parent 2703e956da
commit 6419f82ea5
7 changed files with 422 additions and 4 deletions
+36
View File
@@ -0,0 +1,36 @@
services:
db:
image: mariadb:10.6
environment:
MARIADB_DATABASE: wordpress
MARIADB_USER: wordpress
MARIADB_PASSWORD: wordpress
MARIADB_ROOT_PASSWORD: root
healthcheck:
test: ["CMD-SHELL", "mysqladmin ping -h 127.0.0.1 -uroot -p$${MARIADB_ROOT_PASSWORD} --silent"]
interval: 5s
timeout: 5s
retries: 30
wordpress:
image: wordpress:php7.4-apache
depends_on:
db:
condition: service_healthy
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: wordpress
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DEBUG: "1"
WORDPRESS_CONFIG_EXTRA: |
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);
ports:
- "${WORDPRESS_PORT:-8080}:80"
volumes:
- wordpress_data:/var/www/html
- ..:/var/www/html/wp-content/plugins/mahak-authenticate-bridge:ro
volumes:
wordpress_data: