2023-12-27 21:42:39 +01:00
|
|
|
version: '3'
|
2022-12-27 16:59:04 +01:00
|
|
|
services:
|
|
|
|
test-db:
|
2023-12-27 21:42:39 +01:00
|
|
|
image: mariadb:latest
|
2022-12-27 16:59:04 +01:00
|
|
|
environment:
|
|
|
|
MYSQL_DATABASE: activitypub-test
|
|
|
|
MYSQL_ROOT_PASSWORD: activitypub-test
|
2023-12-27 21:42:39 +01:00
|
|
|
expose:
|
|
|
|
- "3306"
|
2022-12-27 16:59:04 +01:00
|
|
|
|
|
|
|
test-php:
|
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2023-06-16 11:40:26 +02:00
|
|
|
depends_on:
|
2022-12-27 16:59:04 +01:00
|
|
|
- test-db
|
|
|
|
volumes:
|
|
|
|
- .:/app
|
|
|
|
command: ["composer", "run-script", "test"]
|