zoukankan      html  css  js  c++  java
  • 基础服务Docker-compose

    version: '3'
    services:
      rocketmq-namesrv:
        container_name: rocketmq-namesrv
        image: xxx/base/rocketmq-namesrv:latest
        network_mode: host
        ports:
        - 9876:9876
        volumes:
        - /etc/localtime:/etc/localtime
        - /data/namesrv/logs:/opt/logs
        - /data/namesrv/store:/opt/store
        restart: always
    
      rocketmq-broker:
        container_name: rocketmq-broker
        image: xxx/base/rocketmq-broker:latest
        privileged: true
        network_mode: host
        ports:
        - 11900:11900
        volumes:
        - /etc/localtime:/etc/localtime
        - /data/broker/logs:/opt/logs
        - /data/broker/store:/opt/store
        - /data/broker/broker.properties:/opt/rocketmq/conf/broker.properties
        restart: always
        environment:
          NAMESRV_ADDR: "192.168.2.17:9876"
    
      rocketmq-console:
        image: xxx/base/rocketmq-console-ng:latest
        container_name: rocketmq-console
        volumes:
          - /etc/localtime:/etc/localtime
        ports:
          - "8181:8080"
        environment:
          JAVA_OPTS: "-Drocketmq.namesrv.addr=192.168.2.17:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
        restart: always
    
      redis-db:
        container_name: redis-db
        image: xxx/base/redis:latest
        privileged: true
        ports:
          - "6379:6379"
        volumes:
          - /data/redis:/data
          - /etc/localtime:/etc/localtime
        restart: always
        command: redis-server --requirepass 123456 --appendonly yes
    
      mysql:
        container_name: mysql
        image: xxx/base/mysql-master:latest
        privileged: true
        restart: always
        env_file:
          - /data/mysql/env/mysql-common.env
          - /data/mysql/env/mysql-master.env
        volumes:
          - /data/mysql/mysql:/var/lib/mysql
          - /etc/localtime:/etc/localtime
          - /data/mysql/conf/my.cnf:/etc/alternatives/my.cnf
        ports:
          - "3306:3306"
    
      mongodb:
        image: xxx/base/mongo:latest
        container_name: mongodb
        restart: always
        privileged: true
        ports:
          - "27017:27017"
        volumes:
          - /data/mongo/configdb:/data/configdb:rw
          - /data/mongo/db:/data/db:rw
          - /etc/localtime:/etc/localtime
        environment:
          MONGO_INITDB_ROOT_USERNAME: root
          MONGO_INITDB_ROOT_PASSWORD: 123456
    
      alisql-db:
        container_name: alisql-db
        image: xxx/base/alisql:v5.6.32
        privileged: true
        ports:
          - "3309:3306"
        volumes:
          - /data/alisql/alisql:/var/lib/mysql:rw
          - /data/alisql/logs:/data/ailsql/logs:rw
          - /data/alisql/conf.d:/etc/mysql/conf.d:ro
        environment:
          MYSQL_ROOT_PASSWORD: 123456
          MYSQL_DATABASE: java
          MYSQL_USER: java
          MYSQL_PASSWORD: java123
        restart: always
        command: "--character-set-server=utf8mb4"
    
      nacos:
        image: xxx.com/base/nacos-server:latest
        container_name: nacos-server
        privileged: true
        environment:
          - PREFER_HOST_MODE=hostname
          - MODE=standalone
          - SPRING_DATASOURCE_PLATFORM=mysql
          - MYSQL_MASTER_SERVICE_DB_NAME=mall_config
          - MYSQL_MASTER_SERVICE_HOST=mysql
          - MYSQL_MASTER_SERVICE_PORT=3306
          - MYSQL_MASTER_SERVICE_USER=root
          - MYSQL_MASTER_SERVICE_PASSWORD=123456
          - MYSQL_SLAVE_SERVICE_HOST=mysql
          - MYSQL_SLAVE_SERVICE_PORT=3306
        volumes:
          - /data/nacos/standalone-logs/:/home/nacos/logs
          - /data/nacos/init.d/custom.properties:/home/nacos/init.d/custom.properties
        ports:
          - "8848:8848"
          - "9555:9555"
        depends_on:
          - mysql
        restart: on-failure
    
      redis-db1:
        container_name: redis-db1
        image: xxx/base/redis:latest
        privileged: true
        ports:
          - "16379:6379"
        volumes:
          - /data/redis1:/data
          - /etc/localtime:/etc/localtime
        restart: always
        command: redis-server --requirepass 123456 --appendonly yes
    
  • 相关阅读:
    liunx配置jdk
    liunx 用户修改文件打开数
    goolge安装插件
    安装解压版MySQL 5.6.35
    Windows7 搭建ftp 服务
    eclipse 搭建Swt 环境
    注释正则表达式
    java excle导出合计字段值
    liunx 字符编码问题
    FreeIPA ACI (Access Control Instructions) 访问控制说明
  • 原文地址:https://www.cnblogs.com/Mr-Axin/p/14754387.html
Copyright © 2011-2022 走看看