From 12587bc7125b48156069822a75d3d121f8eae7d5 Mon Sep 17 00:00:00 2001 From: Mahmoud Zalt Date: Mon, 9 May 2016 05:02:15 +0300 Subject: [PATCH] Support Beanstalkd and Beanstalkd Console Closes feature #38 --- README.md | 8 +++++--- beanstalkd-console/Dockerfile | 15 +++++++++++++++ beanstalkd/Dockerfile | 16 ++++++++++++++++ docker-compose.yml | 17 +++++++++++++++++ 4 files changed, 53 insertions(+), 3 deletions(-) create mode 100644 beanstalkd-console/Dockerfile create mode 100644 beanstalkd/Dockerfile diff --git a/README.md b/README.md index acae5449..842039b2 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,8 @@ Running a virtual Container is much faster than running a full virtual Machine. - MySQL - PostgreSQL - MariaDB +- Beanstalkd +- Beanstalkd Console - Data Volume Cannot find your container! we would love to have it as well. Consider contributing your container and adding it to this list. @@ -176,7 +178,7 @@ DB_HOST=xxx.xxx.xxx.xxx > Running PHP, NGINX and MySQL: ```bash -docker-compose up -d php nginx mysql +docker-compose up -d php nginx mysql redis ``` Note: you can choose your own combination of software's (containers), another example: @@ -184,10 +186,10 @@ Note: you can choose your own combination of software's (containers), another ex > Running PHP, NGINX, Postgres and Redis: ```bash -docker-compose up -d php nginx postgres redis +docker-compose up -d php nginx beanstalkd postgres ``` -Supported Containers: `nginx`, `mysql`, `redis`, `postgres`, `mariadb`, `data`, `php`. +Supported Containers: `nginx`, `mysql`, `redis`, `postgres`, `mariadb`, `beanstalkd`, `beanstalkd-console`, `data`, `php`.
3 - Open your browser and visit your `{Docker-IP}` address (`http://xxx.xxx.xxx.xxx`). diff --git a/beanstalkd-console/Dockerfile b/beanstalkd-console/Dockerfile new file mode 100644 index 00000000..f42178dd --- /dev/null +++ b/beanstalkd-console/Dockerfile @@ -0,0 +1,15 @@ +FROM php:latest + +MAINTAINER Mahmoud Zalt + +RUN apt-get update && apt-get install -y curl + +RUN curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /tmp +RUN mv /tmp/beanstalk_console-master /source + +RUN apt-get remove --purge -y curl && apt-get autoclean && apt-get clean +RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +EXPOSE 2080 + +CMD bash -c 'BEANSTALK_SERVERS=$BEANSTALKD_PORT_11300_TCP_ADDR:11300 php -S 0.0.0.0:2080 -t /source/public' \ No newline at end of file diff --git a/beanstalkd/Dockerfile b/beanstalkd/Dockerfile new file mode 100644 index 00000000..ea1f87a8 --- /dev/null +++ b/beanstalkd/Dockerfile @@ -0,0 +1,16 @@ +FROM phusion/baseimage:latest + +MAINTAINER Mahmoud Zalt + +ENV DEBIAN_FRONTEND noninteractive +ENV PATH /usr/local/rvm/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin + +RUN apt-get update +RUN apt-get install -y beanstalkd +RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + +VOLUME /var/lib/beanstalkd/data + +EXPOSE 11300 + +CMD ["/usr/bin/beanstalkd"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1be50859..0946d8ca 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -91,4 +91,21 @@ services: ports: - "6379:6379" +### Beanstalkd Container #################################### + + beanstalkd: + build: ./beanstalkd + ports: + - "11300:11300" + privileged: true + +### Beanstalkd-Console Container ############################ + + beanstalkd-console: + build: ./beanstalkd-console + ports: + - "2080:2080" + links: + - beanstalkd + ### Add more Containers below ###############################