-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (71 loc) · 1.72 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3'
services:
sphinx:
image: macbre/sphinxsearch
ports:
- '9308:9306'
volumes:
- './data/sphinx:/opt/sphinx/index:delegated'
- './src/assets/sphinx/sphinx.conf:/opt/sphinx/conf/sphinx.conf'
networks:
- zfe
mysql:
image: 'mysql:5.6'
ports:
- '3308:3306'
# user: '1000' # somebody from host machine to prevents messing up permission on /data/mysql volume
volumes:
- './conf/mysql/my.cnf:/etc/mysql/conf.d/z.cnf'
- './conf/mysql/initial.sql:/docker-entrypoint-initdb.d/initial.sql'
- './data/mysql:/var/lib/mysql:delegated'
env_file:
- .env.mysql
networks:
- zfe
command: ['mysqld', '--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci']
phpfpm:
depends_on:
- mysql
- sphinx
build:
context: ./src
volumes:
- './data/app:/var/www/data:delegated'
- './src:/var/www/html:cached'
- './conf/php.ini:/usr/local/etc/php/conf.d/extra.ini'
environment:
- APPLICATION_ENV=development
- SPHINX_HOST=sphinx
- SPHINX_PORT=9306
env_file:
- .env.mysql
networks:
- zfe
web:
depends_on:
- phpfpm
image: 'nginx:latest'
ports:
- '8000:80'
volumes:
- './conf/server.conf:/etc/nginx/conf.d/default.conf'
- './src/public:/var/www/html/public:cached'
networks:
- zfe
tests:
depends_on:
- web
build:
context: ./tests
volumes:
- './tests:/var/www/tests'
- './src:/var/www/src'
- './conf/php.ini:/usr/local/etc/php/conf.d/extra.ini'
environment:
- APPLICATION_ENV=testing
env_file:
- .env.mysql
networks:
- zfe
networks:
zfe: