Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
76 lines (70 loc) · 2.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
76 lines (70 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
services:
php82:
build:
context: .
args:
PHP_VERSION: 8.2
volumes:
- ./:/app:cached
command: sh -c "composer update --no-interaction && vendor/bin/phpunit"
php83:
build:
context: .
args:
PHP_VERSION: 8.3
volumes:
- ./:/app:cached
command: sh -c "composer update --no-interaction && vendor/bin/phpunit"
php84:
build:
context: .
args:
PHP_VERSION: 8.4
volumes:
- ./:/app:cached
command: sh -c "composer update --no-interaction && vendor/bin/phpunit"
php85:
build:
context: .
args:
PHP_VERSION: 8.5
volumes:
- ./:/app:cached
command: sh -c "composer update --no-interaction && vendor/bin/phpunit"
# Databases for running the Database suite against a real engine.
#
# docker compose up -d mysql postgres
# DB_DRIVER=pdo_mysql DB_PORT=3308 DB_USER=root DB_PASSWORD=secret composer test:db
# DB_DRIVER=pdo_pgsql DB_PORT=5434 DB_USER=postgres DB_PASSWORD=secret composer test:db
# DB_DRIVER=pdo_sqlsrv DB_PORT=1435 DB_USER=sa DB_PASSWORD='Secret_1234' composer test:db
#
# Ports are shifted off the defaults (and off json-api's shifted ports) so
# these never collide with an engine already running on the host. SQLite
# needs nothing and stays the default.
mysql:
image: mysql:8.4
ports: ['3308:3306']
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: appkit_test
healthcheck:
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-psecret']
interval: 5s
retries: 20
postgres:
image: postgres:16
ports: ['5434:5432']
environment:
POSTGRES_PASSWORD: secret
POSTGRES_DB: appkit_test
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 5s
retries: 20
sqlserver:
image: mcr.microsoft.com/mssql/server:2022-latest
ports: ['1435:1433']
environment:
ACCEPT_EULA: 'Y'
MSSQL_SA_PASSWORD: 'Secret_1234'
MSSQL_PID: Developer