-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
93 lines (84 loc) · 1.93 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
version: "3.5"
services:
elasticsearch:
build: elasticsearch
environment:
- bootstrap.memory_lock=true
- xpack.security.enabled=false
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
- "http.host=0.0.0.0"
- "transport.host=127.0.0.1"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elasticsearch:/usr/share/elasticsearch/data
ports:
- 9200:9200
maildev:
image: djfarrelly/maildev
env_file: ./docker.env
depends_on:
- php
ports:
- 1080:80
mysql:
image: mariadb
env_file: ./docker.env
ports:
- 3306:3306
volumes:
- mysql:/var/lib/mysql
- ./mysqldump:/mysqldump
tty: true
nginx:
build: nginx
env_file: ./docker.env
ports:
- 443:443
volumes:
- ${MAGENTO_ROOT}:/var/www/html:rw,delegated
# Custom configuration
- ./nginx/servers/nginx${MAGENTO_VERSION}.conf:/etc/nginx/conf.d/nginx.conf:ro
- ./custom-nginx.conf:/etc/nginx/custom/custom.conf:ro
tty: true
php:
build:
context: ./php/${PHP_VERSION}
target: ${DOCKER_PHP_IMAGE}
env_file: ./docker.env
volumes:
- ${MAGENTO_ROOT}:/var/www/html:rw,delegated
# Custom configuration
- ./php/conf.d/custom.ini:/usr/local/etc/php/conf.d/custom.ini:ro
# Xdebug configuration
- ./php/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini:ro
# SSH keys
- ~/.ssh:/root/.ssh:ro
# external composer extensions
- ../${EXTERNAL_EXTENSIONS_PATH}:/var/www/extensions
tty: true
redis:
image: redis:3.2-alpine
env_file: ./docker.env
volumes:
- redis:/data
tty: true
varnish:
image: varnish
env_file: ./docker.env
volumes:
- varnish:/data
tty: true
phpmyadmin:
build: ./phpmyadmin
env_file:
- ./docker.env
ports:
- 8080:80
volumes:
elasticsearch: {}
mysql: {}
redis: {}
varnish: {}