-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
161 lines (151 loc) · 3.74 KB
/
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
services:
# Development SMTP server with webmail
# Email interface accessible via http://localhost:8025
mailhog:
image: mailhog/mailhog
container_name: mailhog
restart: unless-stopped
ports:
# Set to port 25 replaces local sendmail (and avoid spamming people)
# You can override these variables in .env
- ${MAILHOG_SMTP_PORT:-25}:1025
- ${MAILHOG_HTTP_PORT:-8025}:8025
networks:
customnetwork:
ipv4_address: 192.168.133.3
## Optional services
## Use --profile to launch
# Full-text search solr 8 server
# version 8 is the latest supported by Drupal
# see https://www.drupal.org/project/search_api_solr
solr8:
image: library/solr:8
container_name: solr8
restart: unless-stopped
profiles:
- all
- drupal
- solr
volumes:
- solr8-cores:/var/solr
ports:
# You can override this variable in .env
- ${SOLR8_HTTP_PORT:-8983}:8983
environment:
SOLR_JAVA_MEM: "-Xms512m -Xmx3g"
logging:
options:
max-size: "10m"
max-file: "3"
networks:
customnetwork:
ipv4_address: 192.168.133.5
# MariaDB SQL server
mariadb:
image: library/mariadb:10.6
container_name: mariadb
restart: unless-stopped
profiles:
- all
- drupal
- mariadb
environment:
MYSQL_ROOT_PASSWORD: root
MARIADB_ROOT_PASSWORD: root
TZ: Europe/Bucharest
ports:
# You can override this variable in .env
- ${MARIADB_PORT:-3306}:3306
#tmpfs:
# - /var/lib/mysql
volumes:
- ./conf/mariadb/passwd:/root/.my.cnf
- ./conf/mariadb/drupal.cnf:/etc/mysql/conf.d/90-drupal.cnf
- ./data/mariadb/init:/docker-entrypoint-initdb.d
- mariadb-data:/var/lib/mysql
# - ramdisk:/var/lib/mysql:rw
networks:
customnetwork:
ipv4_address: 192.168.133.8
# Apache Tomcat 7 server
# For Java web apps
tomcat7:
image: tomcat:7-jre8
container_name: tomcat7
profiles:
- all
- tomcat
ports:
# You can override this variable in .env
- ${TOMCAT7_PORT:-8080}:8080
networks:
customnetwork:
ipv4_address: 192.168.133.6
redis:
image: redis:8.0-M01
container_name: redis
restart: unless-stopped
profiles:
- all
- drupal
- varnish
volumes:
- redis-cache:/data
- ./conf/redis/redis.conf:/usr/local/redis.conf
entrypoint: redis-server /usr/local/redis.conf
ports:
- ${REDIS_PORT:-6379}:6379
networks:
customnetwork:
ipv4_address: 192.168.133.9
memcached:
image: memcached:1.6-alpine
container_name: memcached
restart: unless-stopped
profiles:
- all
- drupal
- varnish
command:
- --conn-limit=1024
- --memory-limit=512
- --threads=4
ports:
- ${REDIS_PORT:-11211}:11211
networks:
customnetwork:
ipv4_address: 192.168.133.10
# Varnish server
varnish:
image: million12/varnish
container_name: varnish
restart: unless-stopped
profiles:
- all
- drupal
- varnish
volumes:
- ./conf/varnish/secret:/etc/varnish/secret
environment:
VARNISHD_PARAMS: "-p http_max_hdr=512 -p http_resp_hdr_len=1024768 -p http_resp_size=3024768 -p thread_pool_min=200 -p thread_pool_max=500 -p http_req_size=64000"
ports:
# You can override this variable in .env
- ${VARNISH_PORT:-6081}:80
# Management port
# - "0.0.0.0:6082:6082"
networks:
customnetwork:
ipv4_address: 192.168.133.7
volumes:
solr8-cores:
mariadb-data:
redis-cache:
# ramdisk:
# driver_opts:
# type: tmpfs
# device: tmpfs
networks:
customnetwork:
ipam:
config:
- subnet: 192.168.133.0/24