-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
37 lines (34 loc) · 863 Bytes
/
docker-compose.test.yml
File metadata and controls
37 lines (34 loc) · 863 Bytes
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
version: '3.8'
services:
test-php84:
build:
context: .
dockerfile: Dockerfile.test
args:
PHP_VERSION: "8.4"
volumes:
- .:/app
depends_on:
- db-test
environment:
- DATABASE_URL=mysql://root:secret@db-test/test_openapi_theme?encoding=utf8mb4&timezone=UTC&cacheMetadata=true
test-php83:
build:
context: .
dockerfile: Dockerfile.test
args:
PHP_VERSION: "8.3"
volumes:
- .:/app
depends_on:
- db-test
environment:
- DATABASE_URL=mysql://root:secret@db-test/test_openapi_theme?encoding=utf8mb4&timezone=UTC&cacheMetadata=true
db-test:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: test_openapi_theme
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306"