Commit f5a50a09 by ChongmingDu

Install local test service

parents
version: '2.1'
services:
db:
container_name: mysql
restart: on-failure
image: mysql:5.6
mem_limit: 300M
ports:
- 3306:3306
volumes:
- ./mysql_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: 1q2w3e4r
MYSQL_USER: test
MYSQL_PASSWORD: 1q2w3e4r
cache:
container_name: redis
restart: on-failure
image: redis:5
mem_limit: 300M
ports:
- 6379:6379
volumes:
- ./redis_data:/data
zoo:
container_name: zookeeper
restart: on-failure
image: zookeeper
mem_limit: 300M
ports:
- 2181:2181
volumes:
- ./zookeeper_data:/data
mongo:
container_name: mongo
restart: on-failure
image: mongo
mem_limit: 300M
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 1q2w3e4r
ports:
- 27017:27017
volumes:
- ./mongo_data:/data
mq:
container_name: activemq
restart: on-failure
image: webcenter/activemq
mem_limit: 512m
ports:
- 8161:8161
- 61616:61616
- 61613:61613
volumes:
- ./activemq_data:/data
- ./activemq_log:/var/log/activemq
volumes:
mysql_data:
redis_data:
zookeeper_data:
mongo_data:
activemq_data:
activemq_log:
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment