新系统环境安装文档-基础环境 发表于 2023-05-02 | 分类于 计算机 , Docker | | MongoDBmongodb docker-compose.yamlview raw1234567891011121314151617181920212223version: "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: 5networks: basic-instrument: MySQLmysql docker-compose.yamlview raw1234567891011121314151617181920version: "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=123456networks: basic-instrument: RabbitMQrabbitmq docker-compose.yamlview raw123456789101112131415161718192021222324version: "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: 5networks: basic-instrument: Redisredis docker-compose.yamlview raw12345678910111213141516version: "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:/datanetworks: basic-instrument: Donate - Support to make this site better.捐助 - 支持我让我做得更好. 打赏 比特币(BTC/USDT) 以太坊(ETH/USDx) TRX(USDx)