Add mongo and rabbitmq compose files

This commit is contained in:
2018-05-15 10:38:14 +01:00
parent c8c31728a2
commit bef599acc7
3 changed files with 32 additions and 5 deletions

View File

@@ -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.

14
mongo/docker-compose.yml Normal file
View File

@@ -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

View File

@@ -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"