-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from M6Web/feature/docker
Add Docker and fig config files
- Loading branch information
Showing
4 changed files
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM ubuntu:14.04 | ||
|
||
MAINTAINER M6Web <[email protected]> | ||
|
||
RUN apt-get update | ||
|
||
RUN apt-get -y install wget | ||
|
||
RUN wget -qO - https://www.rabbitmq.com/rabbitmq-signing-key-public.asc | apt-key add - | ||
RUN echo "deb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get update | ||
|
||
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install \ | ||
git \ | ||
rabbitmq-server \ | ||
vim | ||
|
||
RUN rabbitmq-plugins enable rabbitmq_management | ||
|
||
RUN echo "[{rabbit, [{loopback_users, []}]}]." >> /etc/rabbitmq/rabbitmq.config | ||
|
||
RUN echo 'root:root' | chpasswd | ||
|
||
ADD docker/start.sh /root/start.sh | ||
RUN chmod +x /root/start.sh | ||
|
||
VOLUME ["/var/log/rabbitmq"] | ||
|
||
EXPOSE 15672 | ||
EXPOSE 5672 | ||
|
||
CMD ["/bin/bash", "/root/start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
ulimit -n 1024 | ||
|
||
echo "RabbitMQ Management : http://localhost:15672/" | ||
|
||
exec rabbitmq-server $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
rabbitmq: | ||
build: . | ||
ports: | ||
- "15672:15672" | ||
- "5672:5672" |