-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdocker-compose.yml
77 lines (53 loc) · 1.65 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
version: '2'
services:
nginx:
build:
context: .docker/nginx
image: project/magento-nginx
container_name: project_magento2_nginx
volumes:
- ./.docker/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./.docker/nginx/conf/upstream.conf:/etc/nginx/conf.d/upstream.conf
- ./.docker/nginx/sites-enabled:/etc/nginx/sites-enabled
- ./:/www/project
ports:
- 80:80
- 443:443
links:
- php
tty: true
env_file:
- ./.project-env
php:
build:
context: .docker/php
image: project/magento-php
container_name: project_magento2_php
volumes:
- ./.docker/php/conf/php.ini:/usr/local/etc/php/php.ini
- ./.docker/php/conf/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- ./.docker/php/conf/project.pool.conf:/usr/local/etc/php-fpm.d/www.conf
- ./.docker/php/logs:/usr/local/var/log
- ./:/www/project
ports:
- "9001:9000"
links:
- database
tty: true
env_file:
- ./.project-env
environment:
PHP_IDE_CONFIG: "serverName=project"
database:
build:
context: .docker/database
image: project/magento-database
container_name: project_magento2_db
volumes:
- ./.docker/database/data:/var/lib/mysql
- ./.docker/database/setup:/docker-entrypoint-initdb.d
ports:
- 3307:3306
tty: true
env_file:
- ./.project-env