Skip to content

Commit 12587bc

Browse files
committed
Support Beanstalkd and Beanstalkd Console
Closes feature laradock#38
1 parent 81f2602 commit 12587bc

4 files changed

Lines changed: 53 additions & 3 deletions

File tree

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ Running a virtual Container is much faster than running a full virtual Machine.
114114
- MySQL
115115
- PostgreSQL
116116
- MariaDB
117+
- Beanstalkd
118+
- Beanstalkd Console
117119
- Data Volume
118120

119121
Cannot find your container! we would love to have it as well. Consider contributing your container and adding it to this list.
@@ -176,18 +178,18 @@ DB_HOST=xxx.xxx.xxx.xxx
176178
> Running PHP, NGINX and MySQL:
177179
178180
```bash
179-
docker-compose up -d php nginx mysql
181+
docker-compose up -d php nginx mysql redis
180182
```
181183

182184
Note: you can choose your own combination of software's (containers), another example:
183185

184186
> Running PHP, NGINX, Postgres and Redis:
185187
186188
```bash
187-
docker-compose up -d php nginx postgres redis
189+
docker-compose up -d php nginx beanstalkd postgres
188190
```
189191

190-
Supported Containers: `nginx`, `mysql`, `redis`, `postgres`, `mariadb`, `data`, `php`.
192+
Supported Containers: `nginx`, `mysql`, `redis`, `postgres`, `mariadb`, `beanstalkd`, `beanstalkd-console`, `data`, `php`.
191193

192194
<br>
193195
3 - Open your browser and visit your `{Docker-IP}` address (`http://xxx.xxx.xxx.xxx`).

beanstalkd-console/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
FROM php:latest
2+
3+
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
4+
5+
RUN apt-get update && apt-get install -y curl
6+
7+
RUN curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /tmp
8+
RUN mv /tmp/beanstalk_console-master /source
9+
10+
RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean
11+
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
12+
13+
EXPOSE 2080
14+
15+
CMD bash -c 'BEANSTALK_SERVERS=$BEANSTALKD_PORT_11300_TCP_ADDR:11300 php -S 0.0.0.0:2080 -t /source/public'

beanstalkd/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM phusion/baseimage:latest
2+
3+
MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
4+
5+
ENV DEBIAN_FRONTEND noninteractive
6+
ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
7+
8+
RUN apt-get update
9+
RUN apt-get install -y beanstalkd
10+
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
11+
12+
VOLUME /var/lib/beanstalkd/data
13+
14+
EXPOSE 11300
15+
16+
CMD ["/usr/bin/beanstalkd"]

docker-compose.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,21 @@ services:
9191
ports:
9292
- "6379:6379"
9393

94+
### Beanstalkd Container ####################################
95+
96+
beanstalkd:
97+
build: ./beanstalkd
98+
ports:
99+
- "11300:11300"
100+
privileged: true
101+
102+
### Beanstalkd-Console Container ############################
103+
104+
beanstalkd-console:
105+
build: ./beanstalkd-console
106+
ports:
107+
- "2080:2080"
108+
links:
109+
- beanstalkd
110+
94111
### Add more Containers below ###############################

0 commit comments

Comments
 (0)