新系统环境安装文档-基础环境

MongoDB

mongodb docker-compose.yamlview raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: "3.7"

services:
mongo:
image: mongo:5.0.5-focal
ports:
- "127.0.0.1:27017:27017"
networks:
- basic-instrument
restart: always
volumes:
- ./data:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 123456
healthcheck:
test: ["CMD", "mongo", "--eval", "db.adminCommand('ping')"]
interval: 5s
timeout: 5s
retries: 5

networks:
basic-instrument:

MySQL

mysql docker-compose.yamlview raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
version: "3.7"

services:
mysql:
image: "mysql:5.7"
ports:
- "127.0.0.1:3306:3306"
networks:
- basic-instrument
restart: always
volumes:
- ./data:/data/mysql
- ./conf.d:/etc/mysql/conf.d
- ./logs:/logs
- ./mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=123456

networks:
basic-instrument:

RabbitMQ

rabbitmq docker-compose.yamlview raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
version: "3.7"

services:
rabbitmq:
image: rabbitmq:3.9-management
ports:
- "127.0.0.1:5672:5672"
- "127.0.0.1:15672:15672"
networks:
- basic-instrument
restart: always
volumes:
- .data:/var/lib/rabbitmq/mnesia
environment:
- RABBITMQ_USERNAME=guest
- RABBITMQ_PASSWORD=guest
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"]
interval: 5s
timeout: 5s
retries: 5

networks:
basic-instrument:

Redis

redis docker-compose.yamlview raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
version: "3.7"

services:
redis:
image: "redis"
ports:
- "127.0.0.1:6379:6379"
networks:
- basic-instrument
restart: always
volumes:
# - ./conf/redis.conf:/usr/local/etc/redis/redis.conf
- ./data:/data

networks:
basic-instrument:
Donate - Support to make this site better.
捐助 - 支持我让我做得更好.