-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (52 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
52 lines (52 loc) · 1.06 KB
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
web:
image: hansphung/dockerized-magento-nginx:stable-alpine
ports:
- "80:80"
- "443:443"
links:
- "php"
volumes:
- ./var/log/nginx:/var/log/nginx
- ./var/nginx/custom-locations:/etc/nginx/custom-locations
volumes_from:
- php
php:
image: hansphung/dockerized-magento-php:7.0-fpm-alpine
links:
- "cache:rediscache"
- "sessions:redissession"
- "db:db"
volumes:
- .:/var/www/html
environment:
XDEBUG_REMOTE_HOST: 192.168.0.102
db:
image: mysql
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root
volumes:
- ./var/lib/mysql:/var/lib/mysql
cache:
image: redis:alpine
sessions:
image: redis:alpine
varnish:
image: million12/varnish
links:
- "web:backend-host"
ports:
- "80:80"
volumes_from:
- web
environment:
VCL_CONFIG: /var/www/html/var/default.vcl
CACHE_SIZE: 64m
VARNISHD_PARAMS: -p cli_buffer=16384 -p vcc_allow_inline_c=on -p feature=+esi_ignore_other_elements,+esi_disable_xml_check
adminer:
image: adminer
ports:
- "8080:8080"
links:
- "db:db"