blob: 0a58957690dbff4979f5c4377719f3508d111edf [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
version: '3.5'
# command: `docker-compose up -d `
services:
rmqnamesrv:
image: apache_rocketmq:latest
container_name: rmqnamesrv
ports:
- 9876:9876
volumes:
- ./rmqs/logs:/home/rocketmq/logs
- ./rmqs/store:/home/rocketmq/store
environment:
JAVA_OPT_EXT: "-Duser.home=/home/rocketmq -Xms512M -Xmx512M -Xmn128m"
command: ["sh","mqnamesrv"]
networks:
rmq:
aliases:
- rmqnamesrv
rmqbroker:
image: apache_rocketmq:latest
container_name: rmqbroker
links:
- rmqnamesrv
ports:
- 10909:10909
- 10911:10911
- 10912:10912
volumes:
- ./rmqs/logs:/home/rocketmq/logs
- ./rmqs/store:/home/rocketmq/store
environment:
JAVA_OPT_EXT: "-Duser.home=/home/rocketmq -Xms512M -Xmx512M -Xmn128m"
NAMESRV_ADDR: "rmqnamesrv:9876"
command: ["sh","mqbroker"]
depends_on:
- rmqnamesrv
networks:
rmq:
aliases:
- rmqbroker
rmqproxy:
image: apache_rocketmq:latest
container_name: rmqproxy
links:
- rmqnamesrv
ports:
- 8081:8081
volumes:
- ./rmqs/logs:/home/rocketmq/logs
- ./rmqs/store:/home/rocketmq/store
environment:
JAVA_OPT_EXT: "-Duser.home=/home/rocketmq -Xms512M -Xmx512M -Xmn128m"
NAMESRV_ADDR: "rmqnamesrv:9876"
command: ["sh","mqproxy"]
depends_on:
- rmqbroker
networks:
rmq:
aliases:
- rmqproxy
networks:
rmq:
name: rmq
driver: bridge