-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
187 lines (177 loc) · 4.06 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
volumes:
database:
driver: "local"
nginx_logs:
driver: "local"
redis:
driver: "local"
services:
workspace:
container_name: dockerhero_workspace
build: ./workspace/php8.2
restart: unless-stopped
volumes:
- ./../:/var/www/projects
- ./crons:/var/crons
tty: true
dns: 8.8.8.8
networks:
dockerhero:
ipv4_address: 172.25.0.10
php:
container_name: dockerhero_php
build: ./php/8.3
restart: unless-stopped
links:
- db
- workspace
- redis
- minio
depends_on:
- workspace
volumes:
- ../:/var/www/projects
- ./.phpmyadmin/index.php:/var/www/phpmyadmin/index.php
- ./.phpredisadmin/index.php:/var/www/phpredisadmin/index.php
ports:
- "9912:9912"
expose:
- "9005"
dns: 8.8.8.8
networks:
dockerhero:
ipv4_address: 172.25.0.11
web:
container_name: dockerhero_web
build: ./nginx
restart: unless-stopped
links:
- php
volumes:
- ../:/var/www/projects
- ./.phpmyadmin/index.php:/var/www/phpmyadmin/index.php
- ./.phpredisadmin/index.php:/var/www/phpredisadmin/index.php
- ./nginx/conf:/etc/nginx/conf.d/dockerhero/custom
- nginx_logs:/var/log/nginx
depends_on:
- php
ports:
- "80:80"
- "443:443"
dns: 8.8.8.8
networks:
dockerhero:
ipv4_address: 172.25.0.12
db:
container_name: dockerhero_db
image: mysql:5.7
restart: unless-stopped
command: --sql_mode="NO_ENGINE_SUBSTITUTION"
volumes:
- "database:/var/lib/mysql"
environment:
- MYSQL_ROOT_PASSWORD=dockerhero
- MYSQL_PASSWORD=dockerhero
- MYSQL_DATABASE=dockerhero
- MYSQL_TCP_PORT=3306
ports:
- "3306:3306"
networks:
dockerhero:
ipv4_address: 172.25.0.13
healthcheck:
test: ["CMD", "mysqladmin", "-pdockerhero", "ping"]
mail:
container_name: dockerhero_mail
image: axllent/mailpit
restart: unless-stopped
ports:
- "1025:1025"
- "8025:8025"
networks:
dockerhero:
ipv4_address: 172.25.0.14
redis:
container_name: dockerhero_redis
image: redis:latest
restart: unless-stopped
volumes:
- redis:/data
ports:
- "6379:6379"
command: redis-server --appendonly yes
networks:
dockerhero:
ipv4_address: 172.25.0.15
healthcheck:
test: ["CMD", "redis-cli", "ping"]
minio:
container_name: dockerhero_minio
image: minio/minio:latest
restart: unless-stopped
command: server /data --console-address ":9001"
environment:
- MINIO_ROOT_USER=root
- MINIO_ROOT_PASSWORD=dockerhero
ports:
- "9001:9001"
- "9000:9000"
networks:
dockerhero:
ipv4_address: 172.25.0.18
volumes:
- ./minio:/data
phpmyadmin:
container_name: dockerhero_dbadmin
image: phpmyadmin
restart: unless-stopped
depends_on:
- db
links:
- db
volumes:
- ./.phpmyadmin/config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
- ./databases:/var/www/html/tmp/dockerhero_databases
environment:
- PMA_HOST=dockerhero_db
- PMA_ROOT_PASSWORD=dockerhero
- PMA_USER=root
- PMA_PASSWORD=dockerhero
- MYSQL_ROOT_PASSWORD=dockerhero
- MYSQL_PASSWORD=dockerhero
- MYSQL_DATABASE=dockerhero
- MAX_EXECUTION_TIME=600
- MEMORY_LIMIT=256M
- UPLOAD_LIMIT=2G
ports:
- 8026:80
networks:
dockerhero:
ipv4_address: 172.25.0.16
profiles:
- phpmyadmin
phpredisadmin:
container_name: dockerhero_redisadmin
image: erikdubbelboer/phpredisadmin
restart: unless-stopped
depends_on:
- redis
links:
- redis
environment:
- REDIS_1_HOST=dockerhero_redis
- REDIS_1_PORT=6379
ports:
- 8027:80
networks:
dockerhero:
ipv4_address: 172.25.0.17
profiles:
- phpredisadmin
networks:
dockerhero:
driver: bridge
ipam:
driver: default
config:
- subnet: 172.25.0.0/17