-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
118 lines (109 loc) · 2.43 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
version: '3'
services:
mongo:
container_name: mongo
image: mongo:5
ports:
- "27017:27017"
restart: always
command: ["--replSet", "mongo", "--bind_ip_all", "--port", "27017"]
volumes:
- mongodb:/data/db
healthcheck:
test: |
mongosh --quiet --eval "try { rs.status() } catch (err) { rs.initiate({_id: 'mongo', members: [{_id: 0, host: 'localhost:27017', priority:1}) }"
interval: 10s
timeout: 30s
retries: 5
mysql:
container_name: mysql
image: mysql
platform: linux/x86_64
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USERNAME: root
MYSQL_PASSWORD: root
ports:
- "3306:3306"
restart: always
volumes:
- mysql:/var/lib/mysql
posgresql:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
restart: always
volumes:
- postgres:/var/lib/postgres/data
redis:
container_name: redis
image: redis
ports:
- "6379:6379"
restart: always
volumes:
- redis:/data
rabbitmq:
container_name: rabbitmq
image: rabbitmq:management-alpine
ports:
- "5672:5672"
- "15672:15672"
restart: always
volumes:
- rabbitmq:/var/lib/rabbitmq
- rabbitmq_log:/var/log/rabbitmq
mariadb:
container_name: mariadb
image: mariadb
platform: linux/x86_64
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_USERNAME: root
MYSQL_PASSWORD: root
ports:
- "3307:3306"
restart: always
volumes:
- mariadb:/var/lib/mysql
proxysql:
container_name: proxysql
image: proxysql/proxysql:2.0.15
volumes:
- ./proxysql.cnf:/etc/proxysql.cnf
ports:
- "6032:6032"
- "6033:6033"
restart: always
depends_on:
- mariadb
minio:
container_name: minio
image: minio/minio
ports:
- '9000:9000'
- '9001:9001'
volumes:
- 'minio:/data'
environment:
- MINIO_ROOT_USER=minio
- MINIO_ROOT_PASSWORD=miniominio
restart: always
platform: linux/x86_64
command: server /data --console-address ":9001"
volumes:
mongodb:
mongodb_replica_2:
mysql:
mariadb:
postgres:
redis:
rabbitmq:
rabbitmq_log:
minio: