-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.test.yml
53 lines (49 loc) · 1.13 KB
/
docker-compose.test.yml
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
version: '3.7'
# Docker Network
networks:
network:
driver: bridge
services:
# Apache + PHP
web:
build:
context: ../
dockerfile: build/Dockerfile
image: app
environment:
- APP_ENV=testing
- APP_DEBUG=true
- APP_KEY=TESTTESTTESTTESTTESTTESTTESTTEST
- APP_URL=http://web/
- CONTAINER_ROLE=app
- DB_HOST=db
- DB_PORT=3306
- DB_DATABASE=testing
- DB_USERNAME=root
- DB_PASSWORD=root
- CACHE_DRIVER=redis
- FILESYSTEM_DRIVER=local
- SESSION_DRIVER=redis
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=rediz
depends_on:
- db
- redis
networks:
- network
# MySQL
db:
image: mysql:8.0.23
command: ["--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci", "--default-authentication-plugin=mysql_native_password"]
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=testing
networks:
- network
# Redis
redis:
image: redis:5.0.6
command: ["redis-server", "--appendonly", "yes", "--requirepass", "rediz"]
networks:
- network