-
Notifications
You must be signed in to change notification settings - Fork 34
/
docker-compose.yml
57 lines (55 loc) · 1.49 KB
/
docker-compose.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
54
55
56
57
services:
fpm:
build:
context: .
dockerfile: Dockerfile.fpm
ports:
- "9400:80"
volumes:
- ./src:/usr/share/nginx/html/src
- ./tests:/usr/share/nginx/html/tests
networks:
- testing
depends_on:
- swoole
swoole:
build:
context: .
dockerfile: Dockerfile.swoole
ports:
- "9401:80"
volumes:
- ./dev:/usr/src/code/dev:rw
- ./src:/usr/src/code/src
- ./tests:/usr/src/code/tests
- ./tmp/xdebug:/tmp/xdebug
networks:
- testing
swoole-coroutine:
build:
context: .
dockerfile: Dockerfile.swoole_coroutines
ports:
- "9402:80"
volumes:
- ./dev:/usr/src/code/dev:rw
- ./src:/usr/src/code/src
- ./tests:/usr/src/code/tests
- ./tmp/xdebug:/tmp/xdebug
networks:
- testing
mariadb:
image: mariadb:10.11 # fix issues when upgrading using: mysql_upgrade -u root -p
container_name: mariadb
networks:
- testing
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=test
- MYSQL_USER=user
- MYSQL_PASSWORD=password
command: "mysqld --innodb-flush-method=fsync --max-connections=10000"
networks:
testing: