mirror of
https://github.com/jimeh/Dockerfiles.git
synced 2026-02-19 07:56:41 +00:00
Add mongo and rabbitmq compose files
This commit is contained in:
@@ -9,8 +9,7 @@ easier:
|
|||||||
|
|
||||||
## Notes
|
## Notes
|
||||||
|
|
||||||
- The `mysql` container stores it's data in a named volume instead of a directory
|
- The `elasticsearch`, `mysql`, `rabbitmq` containers store their data in a
|
||||||
mounted from the host. This is due to 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
|
[bug](https://forums.docker.com/t/posix-fallocate-issues/11370) in Docker for
|
||||||
Beta version of Docker. Once the bug is resolved, I'll be mounting a host
|
Mac.
|
||||||
directory instead for easy access to the MySQL data files.
|
|
||||||
|
|||||||
14
mongo/docker-compose.yml
Normal file
14
mongo/docker-compose.yml
Normal 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
|
||||||
14
rabbitmq/docker-compose.yml
Normal file
14
rabbitmq/docker-compose.yml
Normal 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"
|
||||||
Reference in New Issue
Block a user