From bef599acc7901abb66bc68572ce3685778a11b06 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Tue, 15 May 2018 10:38:14 +0100 Subject: [PATCH] Add mongo and rabbitmq compose files --- README.md | 9 ++++----- mongo/docker-compose.yml | 14 ++++++++++++++ rabbitmq/docker-compose.yml | 14 ++++++++++++++ 3 files changed, 32 insertions(+), 5 deletions(-) create mode 100644 mongo/docker-compose.yml create mode 100644 rabbitmq/docker-compose.yml diff --git a/README.md b/README.md index 5933c6a..9b8ad52 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ easier: ## Notes -- The `mysql` container stores it's data in a named volume instead of a directory - mounted from the host. This is due to a - [bug](https://forums.docker.com/t/posix-fallocate-issues/11370) in the OS X - Beta version of Docker. Once the bug is resolved, I'll be mounting a host - directory instead for easy access to the MySQL data files. +- The `elasticsearch`, `mysql`, `rabbitmq` containers store their data in a + named volume instead of a directory mounted from the host. This is due to a + [bug](https://forums.docker.com/t/posix-fallocate-issues/11370) in Docker for + Mac. diff --git a/mongo/docker-compose.yml b/mongo/docker-compose.yml new file mode 100644 index 0000000..6a85968 --- /dev/null +++ b/mongo/docker-compose.yml @@ -0,0 +1,14 @@ +version: "2" +services: + mongo: + image: mongo + container_name: mongo + restart: always + network_mode: bridge + ports: + - "127.0.0.1:27017:27017" + volumes: + - data:/data/db +volumes: + data: + driver: local diff --git a/rabbitmq/docker-compose.yml b/rabbitmq/docker-compose.yml new file mode 100644 index 0000000..71874a1 --- /dev/null +++ b/rabbitmq/docker-compose.yml @@ -0,0 +1,14 @@ +version: "2" +services: + rabbitmq: + image: rabbitmq:3-management + container_name: rabbitmq + restart: always + network_mode: bridge + ports: + - "127.0.0.1:4369:4369" + - "127.0.0.1:5671:5671" + - "127.0.0.1:5672:5672" + - "127.0.0.1:25672:25672" + - "127.0.0.1:15671:15671" + - "127.0.0.1:15672:15672"