Skip to main content
Glama
docker-compose.test.yml1.69 kB
services: # Test WordPress instance with pre-configured application password wordpress-test: image: wordpress:latest container_name: wordpress-test ports: - "8081:80" environment: WORDPRESS_DB_HOST: db-test:3306 WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_NAME: wordpress_test WORDPRESS_DEBUG: "true" # Enable REST API and application passwords WORDPRESS_CONFIG_EXTRA: | define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false); define('WP_ENVIRONMENT_TYPE', 'local'); define('REST_API_ENABLED', true); volumes: - ./scripts/wordpress-test-init.php:/var/www/html/wp-content/mu-plugins/test-init.php depends_on: - db-test healthcheck: test: ["CMD", "curl", "-f", "http://localhost/wp-json/wp/v2/"] interval: 10s timeout: 5s retries: 10 start_period: 30s # Test database db-test: image: mysql:8.0 container_name: wordpress-db-test environment: MYSQL_DATABASE: wordpress_test MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress MYSQL_ROOT_PASSWORD: rootpassword volumes: - test_db_data:/var/lib/mysql command: --default-authentication-plugin=mysql_native_password # Pact mock server for contract testing pact-broker: image: pactfoundation/pact-broker:latest container_name: pact-broker-test environment: PACT_BROKER_DATABASE_URL: "sqlite:////tmp/pact_broker.sqlite3" PACT_BROKER_LOG_LEVEL: INFO PACT_BROKER_SQL_LOG_LEVEL: DEBUG ports: - "9292:9292" volumes: test_db_data:

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/docdyhr/mcp-wordpress'

If you have feedback or need assistance with the MCP directory API, please join our Discord server