-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (94 loc) · 2.37 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.3'
services:
app:
build: app/php-fpm
working_dir: /public_html
environment:
- ENABLE_XDEBUG=false
- XDEBUG_CONFIG="remote_host=192.168.1.114"
links:
- 'mysql:mysql'
volumes:
- './src:/public_html'
- './app/composer/cache:/home/fpm_app/.composer/cache'
- './app/composer/auth.json:/home/fpm_app/.composer/auth.json'
- './app/php-fpm/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini'
- './app/php-fpm/conf.d/php-ext.ini:/usr/local/etc/php/conf.d/php-ext.ini'
ports:
- '90:9000'
networks:
- frontend
- backend
cli:
build: app/php-cli
working_dir: /public_html
volumes:
- './src:/public_html'
- './app/composer/cache:/home/cli_app/.composer/cache'
- './app/composer/auth.json:/home/cli_app/.composer/auth.json'
- './app/php-cli/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini'
- './app/php-cli/conf.d/php-ext.ini:/usr/local/etc/php/conf.d/php-ext.ini'
- './app/php-cli/cron.d:/etc/cron.d'
environment:
- ENABLE_XDEBUG=false
- XDEBUG_CONFIG="remote_host=192.168.1.114"
- INSTALL_DB=true
- DB_HOST=mysql
env_file:
- database.env
- mage_setup.env
command: crond -f
ports:
- '99:9000'
networks:
- backend
mysql:
image: 'mysql:5.7'
env_file:
- database.env
volumes:
- './mysql/conf.d:/etc/mysql/conf.d'
ports:
- '81:3306'
networks:
- backend
webserver:
image: 'nginx:alpine'
working_dir: /public_html
volumes:
- './src:/public_html'
- './nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf'
- './nginx/setting/mage2.conf:/etc/nginx/setting/mage2.conf'
- './nginx/log/access.log:/var/log/nginx/application_access.log'
- './nginx/log/error.log:/var/log/nginx/application_error.log'
ports:
- '80:80'
links:
- 'app:php-fpm'
networks:
- frontend
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- '82:80'
links:
- 'mysql:mysql'
environment:
PMA_HOST: mysql
networks:
- backend
grunt:
build: app/grunt
volumes:
- './src:/public_html'
links:
- 'mysql:mysql'
networks:
- backend
networks:
frontend:
external:
name: frontend_network
backend:
external:
name: backend_network