forked from graycoreio/mage2docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (68 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
69 lines (68 loc) · 1.37 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version : '3'
services:
ingress:
image: graycore/magento-nginx:1.18-alpine-develop
ports:
- "80:8000"
- "443:8443"
networks:
- frontend
depends_on:
- magento2
environment:
- MAGENTO2_UPSTREAM=magento2
- MAGENTO2_UPSTREAM_PORT=9000
- NGINX_PORT=8000
- NGINX_TLS_PORT=8443
magento2:
image: graycore/magento-php:7.2-fpm-alpine-develop
restart: always
networks:
- frontend
- backend
env_file:
- ./.env
database:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
- ./mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
restart: always
environment:
MYSQL_ROOT_PASSWORD: magento2
MYSQL_DATABASE: magento2
MYSQL_USER: magento2
MYSQL_PASSWORD: magento2
networks:
- backend
cache:
image: redis:5.0
networks:
- backend
message_queue:
image: rabbitmq:3.5
networks:
- backend
fullpagecache:
image: redis:5.0
networks:
- backend
sessioncache:
image: redis:5.0
networks:
- backend
elasticsearch:
image: elasticsearch:6.8.9
ports:
- "9200:9200"
- "9300:9300"
networks:
- backend
volumes:
- es_data:/usr/share/elasticsearch/data
networks:
frontend:
backend:
volumes:
db_data:
es_data: