-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
129 lines (121 loc) · 2.6 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: '2'
services:
db:
image: mariadb:latest
# networks:
# main:
# aliases:
# - db
volumes:
- "/var/lib/mysql"
- "./db/init:/docker-entrypoint-initdb.d"
environment:
MYSQL_ROOT_PASSWORD: magento
MYSQL_DATABASE: magento
MYSQL_USER: magento
MYSQL_PASSWORD: magento
ports:
- "3306:3306"
redis:
image: redis:latest
ports:
- "6379:6379"
volumes:
- ./conf/redis.conf:/usr/local/etc/redis/redis.conf
# networks:
# main:
# aliases:
# - redis
mailcatcher:
image: yappabe/mailcatcher
ports:
- "1025:1025"
- "1080:1080"
fpm:
depends_on:
- mailcatcher
- db
- elasticsearch
# networks:
# main:
# aliases:
# - fpm
build: ./fpm
restart: always
volumes:
- "./www:/var/www/html"
- "./www2/wordpress:/var/www2/html"
- "./fpm/customized.ini:/usr/local/etc/php/conf.d/customized.ini"
http:
depends_on:
- fpm
# networks:
# main:
# aliases:
# - nginx
image: nmarus/nginx-full
volumes:
- "./conf/http/nginx.conf:/etc/nginx/nginx.conf"
- "./conf/http/conf.d:/etc/nginx/conf.d"
- "./www:/var/www/html"
- "./www2/wordpress:/var/www2/html"
ports:
- "8080:80"
https:
depends_on:
- varnish
- http
# networks:
# main:
# aliases:
# - https
image: nmarus/nginx-full
ports:
- "443:443"
volumes:
- "./conf/https/nginx.conf:/etc/nginx/nginx.conf"
- "./conf/https/conf.d:/etc/nginx/conf.d"
- "./conf/certs:/etc/nginx/ssl"
varnish:
image: eeacms/varnish
depends_on:
- http
# networks:
# main:
# aliases:
# - varnish
ports:
- "80:6081"
- "6085:6085"
volumes:
- "./conf/varnish/varnish.vcl:/etc/varnish/conf.d/varnish.vcl"
environment:
BACKENDS: "http"
BACKENDS_PORT: "80"
BACKENDS_PROBE_INTERVAL: "3s"
BACKENDS_PROBE_TIMEOUT: "1s"
BACKENDS_PROBE_WINDOW: "3"
BACKENDS_PROBE_THRESHOLD: "2"
DASHBOARD_USER: "admin"
DASHBOARD_PASSWORD: "admin"
DASHBOARD_SERVERS: "varnish"
phpmyadmin:
depends_on:
- db
image: phpmyadmin/phpmyadmin
environment:
- PMA_ARBITRARY=1
ports:
- 8888:80
volumes:
- /sessions
elasticsearch:
image: elasticsearch
environment:
- discovery.type=single-node
# networks:
# main:
# aliases:
# - elasticsearch
# networks:
# main: