-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
153 lines (143 loc) · 3.32 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
version: "3.9"
services:
linux-apache-mysql-php-magento:
image: ubuntu20.04-apache2.4-mysql8.0.30-php8.2-m2.4
build:
context: ./ubuntu20.04-apache2.4-mysql8.0.30-php8.2-m2.4
args:
USER: $USER
restart: unless-stopped
ports:
- "8010:80"
- "8180:8080"
- "44310:443"
# - "22010:22"
depends_on:
- mysql8
- elasticsearch
# - opensearch
# links:
# - mysql8
volumes:
- /var/www/:/var/www/
- /etc/hosts:/etc/hosts
- /etc/apache2/ssl/:/etc/apache2/ssl/
- $HOME/.ssh/:$HOME/.ssh/
container_name: m2.4
hostname: m2.4.local
stdin_open: true
tty: true
# environment:
# - WEB_ALIAS_DOMAIN=m2.4.local
# - WEB_DOCUMENT_ROOT=/var/www/m2.4/pub
# - PHP_DATE_TIMEZONE=EST
# - PHP_DISPLAY_ERRORS=1
# - PHP_MEMORY_LIMIT=2048M
# - PHP_MAX_EXECUTION_TIME=300
# - PHP_POST_MAX_SIZE=500M
# - PHP_UPLOAD_MAX_FILESIZE=1024M
networks:
contnet:
ipv4_address: 172.16.1.10
mysql8:
image: mysql:8.0.30
command: ["--default-authentication-plugin=mysql_native_password"]
ports:
- "50001:3306"
environment:
- "MYSQL_ROOT_PASSWORD=root"
volumes:
- $HOME/mysql8:/var/lib/mysql
restart: unless-stopped
container_name: mysql8
hostname: mysql8.local
networks:
contnet:
ipv4_address: 172.16.1.20
# mysql5.6:
# image: mysql:5.6
# ports:
# - "51001:3306"
# environment:
# - "MYSQL_ROOT_PASSWORD=root"
# volumes:
# - $HOME/mysql56:/var/lib/mysql
# restart: unless-stopped
# container_name: mysql56
# hostname: mysql56.local
# networks:
# contnet:
# ipv4_address: 172.16.1.30
# mariadb10:
# image: mariadb:10.2.39
# ports:
# - "52001:3306"
# environment:
# - "MYSQL_ROOT_PASSWORD=root"
# - "MYSQL_DATABASE=magento"
# volumes:
# - $HOME/mariadb10:/var/lib/mysql
# restart: unless-stopped
# container_name: mariadb10
# hostname: mariadb10.local
# networks:
# contnet:
# ipv4_address: 172.16.1.40
elasticsearch:
image: elasticsearch:7.16.1
ports:
- "53201:9200"
- "53301:9300"
environment:
- "discovery.type=single-node"
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
restart: unless-stopped
container_name: elasticsearch7
hostname: elasticsearch7.local
networks:
contnet:
ipv4_address: 172.16.1.50
# opensearch:
# image: opensearchproject/opensearch:2.11.1
# ports:
# - "55201:9200"
# - "55601:9600"
# environment:
# - "discovery.type=single-node"
# restart: unless-stopped
# container_name: opensearch11
# hostname: opensearch11.local
# networks:
# contnet:
# ipv4_address: 172.16.1.60
redis:
image: redis:6.0.5
environment:
- 'ALLOW_EMPTY_PASSWORD=yes'
volumes:
- ./data/redis:/data
ports:
- '54001:6379'
restart: unless-stopped
container_name: redis6
hostname: redis6.local
networks:
contnet:
ipv4_address: 172.16.1.70
mailcatcher:
image: sj26/mailcatcher
container_name: mailcatcher
hostname: mailcatcher.local
ports:
- "10180:1080"
- "10125:1025"
networks:
contnet:
ipv4_address: 172.16.1.80
networks:
contnet:
name: cinet-m2.4
ipam:
driver: default
config:
- subnet: 172.16.0.0/16