Skip to content

Commit 6dcb174

Browse files
authored
Merge pull request laradock#266 from bktz/master
Added support for RabbitMQ
2 parents 38eeae8 + 1e5d604 commit 6dcb174

3 files changed

Lines changed: 29 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ Let's see how easy it is to install `NGINX`, `PHP`, `Composer`, `MySQL` and `Red
129129
- HHVM
130130
- **Message Queueing Systems:**
131131
- Beanstalkd (+ Beanstalkd Console)
132+
- RabbitMQ (+ RabbitMQ Console)
132133
- **Tools:**
133134
- Workspace (PHP7-CLI, Composer, Git, Node, Gulp, SQLite, Vim, Nano, cURL...)
134135
- phpMyAdmin
@@ -249,7 +250,7 @@ docker-compose up -d nginx mysql
249250

250251
You can select your own combination of Containers form the list below:
251252

252-
`nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `workspace`, `phpmyadmin`.
253+
`nginx`, `hhvm`, `php-fpm`, `mysql`, `redis`, `postgres`, `mariadb`, `neo4j`, `mongo`, `apache2`, `caddy`, `memcached`, `beanstalkd`, `beanstalkd-console`, `rabbitmq`, `workspace`, `phpmyadmin`.
253254

254255

255256
**Note**: `workspace` and `php-fpm` will run automatically in most of the cases, so no need to specify them in the `up` command.

docker-compose.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,21 @@ services:
186186
links:
187187
- php-fpm
188188

189+
### RabbitMQ Container ####################################
190+
191+
rabbitmq:
192+
build: ./rabbitmq
193+
ports:
194+
- "5672:5672"
195+
- "15671:15671"
196+
- "8080:15672"
197+
privileged: true
198+
environment:
199+
RABBITMQ_DEFAULT_USER: guest
200+
RABBITMQ_DEFAULT_PASS: guest
201+
links:
202+
- php-fpm
203+
189204
### Beanstalkd Console Container ############################
190205

191206
beanstalkd-console:

rabbitmq/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#
2+
# RabbitMQ Dockerfile
3+
#
4+
# https://github.com/dockerfile/rabbitmq
5+
#
6+
7+
# Pull base image.
8+
FROM rabbitmq
9+
10+
RUN rabbitmq-plugins enable --offline rabbitmq_management
11+
12+
EXPOSE 15671 15672

0 commit comments

Comments
 (0)