-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
108 lines (107 loc) · 2.67 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
102
103
104
105
106
107
108
version: "2"
volumes:
database:
app-sync:
external: true
networks:
default:
driver: bridge
ipam:
config:
- subnet: "192.168.7.0/28"
services:
php-fpm:
image: jetrails/magento-alpine:php-fpm-5.6
restart: unless-stopped
volumes:
- app-sync:/var/www/html:rw
networks:
default:
aliases:
- php-fpm.docker.internal
environment:
- VERBOSE=true
expose:
- "9000"
links:
- mysql
- redis
php-cli:
image: jetrails/magento-alpine:php-cli-5.6
volumes:
- app-sync:/var/www/html:rw
networks:
default:
aliases:
- php-cli.docker.internal
links:
- mysql
- redis
php-cron:
image: jetrails/magento-alpine:php-cron-5.6
restart: unless-stopped
volumes:
- app-sync:/var/www/html:rw
networks:
default:
aliases:
- php-cron.docker.internal
environment:
- VERBOSE=false
links:
- mysql
- redis
nginx:
image: jetrails/magento-alpine:nginx
restart: unless-stopped
volumes:
- app-sync:/var/www/html:rw
networks:
default:
aliases:
- nginx.docker.internal
environment:
- VERBOSE=true
- MAGENTO_VERSION=1
links:
- php-fpm
ports:
- "443:443"
mysql:
image: jetrails/magento-alpine:mysql
restart: unless-stopped
volumes:
- database:/var/lib/mysql
networks:
default:
aliases:
- localhost
- mysql.docker.internal
environment:
- VERBOSE=false
- MYSQL_ROOT_PASSWORD=magento
- MYSQL_USER_NAME=magento
- MYSQL_USER_PASSWORD=magento
- MYSQL_DATABASE=magento
varnish:
image: jetrails/magento-alpine:varnish
restart: unless-stopped
environment:
- VERBOSE=false
networks:
default:
aliases:
- varnish.docker.internal
links:
- nginx
ports:
- "80:80"
redis:
image: jetrails/magento-alpine:redis
restart: unless-stopped
networks:
default:
aliases:
- redis.docker.internal
environment:
- VERBOSE=false