wordpress-activitypub-event.../docker-compose.yml
André Menrath 515f79fd9c
Some checks failed
PHPUnit / PHPUnit – PHP 8.1 (push) Failing after 56s
PHPUnit / PHPUnit – PHP 8.2 (push) Failing after 58s
PHPUnit / PHPUnit – PHP 8.3 (push) Failing after 51s
enable xdebug on integration test imagae
2024-09-24 10:23:31 +02:00

33 lines
757 B
YAML

version: '3'
# This files purpose is to run the PHPunit tests locally.
# Install docker and docker compose and than just run:
# docker compose up
services:
test-db:
image: mariadb
environment:
MARIADB_DATABASE: wordpress-test
MARIADB_ROOT_PASSWORD: wordpress-test
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 5s
interval: 4s
timeout: 5s
retries: 5
test-php:
build:
context: .
dockerfile: Dockerfile
depends_on:
test-db:
condition: service_healthy
links:
- test-db
volumes:
- .:/app
command: ["composer", "run-script", "test"]
extra_hosts:
- "host.docker.internal:host-gateway"