-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (90 loc) · 1.77 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
95
96
97
98
99
100
101
version: '2'
services:
app-data:
#build: vendor/cois-io/m2d-nginx
image: coisio/m2d-nginx
volumes:
- .:/www
command: /bin/true
nginx:
#build: vendor/cois-io/m2d-nginx
image: coisio/m2d-nginx
ports:
- "443:443"
volumes_from:
- app-data
networks:
- backend
depends_on:
- php-fpm
php-fpm:
#build: vendor/cois-io/m2d-php-fpm
image: coisio/m2d-php-fpm
links:
- redis-cache:redis-cache
ports:
- "9000:9000"
- "9001:9001"
volumes_from:
- app-data
networks:
- backend
- frontend
depends_on:
- redis-cache
db-storage:
container_name: db-storage
image: mysql
volumes:
- /var/lib/mysql
command: /bin/true
db:
image: mysql
ports:
- "3306:3306"
depends_on:
- db-storage
- php-fpm # force it to load last
volumes_from:
- db-storage
environment:
- MYSQL_ROOT_PASSWORD=dev
- MYSQL_DATABASE=magento
- MYSQL_USER=dev
- MYSQL_PASSWORD=dev
networks:
- backend
- frontend
elastic-data:
#build: vendor/cois-io/m2d-elasticsearch
image: coisio/m2d-elasticsearch
volumes:
- /usr/share/elasticsearch/data
command: /bin/true
elastic:
#build: vendor/cois-io/m2d-elasticsearch
image: coisio/m2d-elasticsearch
volumes_from:
- elastic-data
networks:
- backend
# removed varnish for now, we do not need it
# varnish:
#build: vendor/cois-io/m2d-varnish
# image: coisio/m2d-varnish
# ports:
# - "80:80"
# networks:
# - backend
# - frontend
# depends_on:
# - nginx
redis-cache:
image: redis
ports:
- "6379:6379"
networks:
- backend
networks:
backend:
frontend: