-
-
Notifications
You must be signed in to change notification settings - Fork 1k
/
Copy pathdocker-compose.dev.yml
47 lines (41 loc) · 1.69 KB
/
docker-compose.dev.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
# Mark Shust's Docker Configuration for Magento
# (https://github.com/markshust/docker-magento)
#
# Version 37.0.2
version: "3"
services:
app:
volumes: &appvolumes
# Host mounts with performance penalty, only put what is necessary here
- ./src/app/code:/var/www/html/app/code:cached
- ./src/app/design:/var/www/html/app/design:cached
- ./src/app/etc:/var/www/html/app/etc:cached
- ./src/composer.json:/var/www/html/composer.json:cached
- ./src/composer.lock:/var/www/html/composer.lock:cached
- ./src/nginx.conf.sample:/var/www/html/nginx.conf:cached
#- ./src/auth.json:/var/www/html/auth.json:cached
#- ./src/m2-hotfixes:/var/www/html/m2-hotfixes:cached
#- ./src/patches:/var/www/html/patches:cached
#- ./src/var/log:/var/www/html/var/log:cached
#- ./src/var/report:/var/www/html/var/report:cached
# To sync your SSH to the container, uncomment the following line:
#- ~/.ssh/id_rsa:/var/www/.ssh/id_rsa:cached
# Linux only: remove the above lines (except nginx.conf line) and mount the entire src directory with:
#- ./src:/var/www/html:cached
phpfpm:
volumes: *appvolumes
# Linux only: host.docker.internal doesn't exist https://github.com/docker/for-linux/issues/264
# Uncomment two lines below & replace IP with result of: docker run --rm alpine ip route | awk 'NR==1 {print $3}'
#extra_hosts:
# - "host.docker.internal:IP"
varnish:
extra_hosts:
- "host.docker.gateway:172.28.0.1" #host machine ip
mailhog:
image: mailhog/mailhog
ports:
- "1025"
- "8025:8025"
# Disabling cron by default as it uses higher CPU, enable if needed
#cron:
# volumes: *appvolumes