Commit c570cae2 authored by 朱孟欣(已离职)'s avatar 朱孟欣(已离职)

README.md edited online with Bitbucket

parent 5bcb76f5
......@@ -2,6 +2,7 @@
It's a repo for quickly setting up the development environment. It uses [Docker 17+](https://www.docker.com) to run containers in swarm mode.
Below services will be ran by this tool,
- Mongo DB 3.4
- Redis 3.2
- RabbitMQ 3.6
......@@ -13,7 +14,7 @@ Below services will be ran by this tool,
###How to set up my development
1. Update the ports of local service in `dev.env` if necessary
2. Run below command in shell,
```
```shell
docker stack deploy -c docker-compose.yml mydev
```
......@@ -21,13 +22,12 @@ docker stack deploy -c docker-compose.yml mydev
By default, the script does not mount the storage of services as external storage. It means the data in MongoDB/Redis/RabbitMQ will be lost after recreating the services/underly containers.
If you want to persistly save your data, you can create named volume like below,
```
```shell
docker volume create --opt type=none --opt device=<absolute path of host> --opt o=bind --name mongo_data
```
Update `docker-compose.yml` as below,
```
```shell
volumes:
rabbitmq_data:
redis_data:
mongo_data:
external: true
......
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