-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
202 lines (199 loc) · 5.61 KB
/
docker-compose.yml
File metadata and controls
202 lines (199 loc) · 5.61 KB
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
volumes:
mysql_data:
driver: local
postgres_data:
driver: local
redis_data:
driver: local
ftp_storage:
driver: local
networks:
bowphp_network:
driver: bridge
services:
mysql:
container_name: bowphp_mysql
image: mysql:8.3.0
restart: unless-stopped
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: test_db
MYSQL_ROOT_PASSWORD: password
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
command: --default-authentication-plugin=mysql_native_password
volumes:
- mysql_data:/var/lib/mysql
networks:
- bowphp_network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-ppassword"]
interval: 10s
timeout: 5s
retries: 5
postgres:
container_name: bowphp_postgres
image: postgis/postgis:15-3.3
restart: unless-stopped
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- bowphp_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U bowphp"]
interval: 10s
timeout: 5s
retries: 5
ftp:
container_name: bowphp_ftp
image: papacdev/vsftpd
restart: unless-stopped
ports:
- "21:21"
- "20:20"
- "12020-12025:12020-12025"
environment:
USER: username
PASS: password
volumes:
- "ftp_storage:/ftp/$USER"
networks:
- bowphp_network
mail:
container_name: bowphp_mailhog
image: mailhog/mailhog
restart: unless-stopped
ports:
- "1025:1025"
- "1080:1080"
networks:
- bowphp_network
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "1025"]
interval: 10s
timeout: 5s
retries: 5
beanstalkd:
container_name: bowphp_beanstalkd
image: schickling/beanstalkd
restart: unless-stopped
ports:
- "11300:11300"
networks:
- bowphp_network
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "11300"]
interval: 10s
timeout: 5s
retries: 5
redis:
container_name: bowphp_redis
image: redis:7-alpine
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- bowphp_network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
command: redis-server --appendonly yes
memcached:
container_name: bowphp_memcached
image: memcached:1.6-alpine
restart: unless-stopped
ports:
- "11211:11211"
command:
- --conn-limit=1024
- --memory-limit=64
- --threads=4
networks:
- bowphp_network
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "11211"]
interval: 10s
timeout: 5s
retries: 5
rabbitmq:
container_name: bowphp_rabbitmq
image: rabbitmq:3.11-management
restart: unless-stopped
ports:
- "5672:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
networks:
- bowphp_network
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "ping"]
interval: 10s
timeout: 5s
retries: 5
minio:
container_name: bowphp_minio
image: minio/minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
networks:
- bowphp_network
healthcheck:
test: ["CMD", "mc", "alias", "set", "local", "http://localhost:9000", "minioadmin", "minioadmin"]
interval: 10s
timeout: 5s
retries: 5
zookeeper:
container_name: bowphp_zookeeper
image: confluentinc/cp-zookeeper:7.5.0
restart: unless-stopped
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
networks:
- bowphp_network
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "2181"]
interval: 10s
timeout: 5s
retries: 5
kafka:
container_name: bowphp_kafka
image: confluentinc/cp-kafka:7.5.0
restart: unless-stopped
ports:
- "9092:9092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://localhost:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "true"
depends_on:
- zookeeper
networks:
- bowphp_network
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "9092"]
interval: 15s
timeout: 10s
retries: 5