zoukankan      html  css  js  c++  java
  • docker-compose 部署jdk+redis+rocketmq

    version: "3"
    services:
    jdk11:
    image: jdk11:11
    tty: true
    container_name: jdk11
    ports:
    - "8080:8080"
    volumes:
    - "/jdk11/www:/jar"
    redis:
    image: redis:6.2.3
    container_name: redis
    command: redis-server /etc/redis/redis.conf
    ports:
    - "6379:6379"
    volumes:
    - "/jdk11/redis/redis.conf:/etc/redis/redis.conf"
    rmqnamesrv:
    image: rocketmqinc/rocketmq:4.3.2
    container_name: rmqnamesrv
    ports:
    - "9876:9876"
    volumes:
    - "/jdk11/rocketmq/nameservice/logs:/home/rocketmq/logs/rocketmqlogs"
    command: sh mqnamesrv
    rmqbroker:
    image: rocketmqinc/rocketmq:4.3.2
    container_name: rmqbroker
    links:
    - rmqnamesrv
    ports:
    - "10909:10909"
    - "10911:10911"
    - "10912:10912"
    volumes:
    - "/jdk11/rocketmq/broker/logs:/home/rocketmq/logs/rocketmqlogs"
    - "/jdk11/rocketmq/broker/broker.conf:/opt/rocketmq-4.3.2/conf/broker.conf"
    #- "/jdk11/rocketmq/broker/store:/opt/store"
    command: sh mqbroker -c /opt/rocketmq-4.3.2/conf/broker.conf
    environment:
    NAMESRV_ADDR: rmqnamesrv:9876
    JAVA_OPT_EXT: "-server -Xms200m -Xmx200m -Xmn200m"
    depends_on:
    - rmqnamesrv
    rmqconsole:
    image: styletang/rocketmq-console-ng:1.0.0
    restart: always
    container_name: rmqconsole
    ports:
    - 8180:8080
    environment:
    JAVA_OPTS: "-Drocketmq.namesrv.addr=rmqnamesrv:9876 -Dcom.rocketmq.sendMessageWithVIPChannel=false"
    depends_on:
    - rmqnamesrv
    一个勤劳的搬砖程序员
  • 相关阅读:
    数据导入和导出
    用户登陆案例
    SQLHelper
    把连接数据库的字符串放在配置文件中
    访问数据库
    SQL语句
    Django Tornado Flask
    Python 的协程
    面试 Better Call Soul
    mklink 解决VScode 扩展...Google迁移到 windows D盘
  • 原文地址:https://www.cnblogs.com/zhang-ding-1314/p/14821658.html
Copyright © 2011-2022 走看看