Skip to content

Commit

Permalink
Document how to add a beanstalk queue (#1315)
Browse files Browse the repository at this point in the history
Document how to add a beanstalk queue, fixes #1313
  • Loading branch information
mrimann authored and rfay committed Jan 7, 2019
1 parent 9116c73 commit 76187c4
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/users/extend/additional-services.md
Expand Up @@ -29,3 +29,14 @@ This recipe adds a Memcached 1.5 container to a project. The default configurati
- The Memcached instance will listen on TCP port 11211 (the Memcached default).
- Configure your application to access Memcached on the host:port `memcached:11211`.
- To reach the Memcached admin interface, run `ddev ssh` to connect to the web container, then use `nc` or `telnet` to connect to the Memcached container on port 11211, i.e. `nc memcached 11211`. You can then run commands such as `stats` to see usage information.

## Beanstalk (Work Queue)
This recipe adds a [Beanstalk](https://beanstalkd.github.io/) container to a project.

**Installation:**
- Copy [docker-compose.beanstalk.yaml](https://github.com/drud/ddev/tree/master/pkg/servicetest/testdata/services/docker-compose.beanstalkd.yaml) to the .ddev folder for your project.
- Run `ddev start`.

**Interacting with the Beanstalk Queue**
- The Beanstalk instance will listen on TCP port 11300 (the beanstalkd default).
- Configure your application to access Beanstalk on the host:port `beanstalk:11300`.
16 changes: 16 additions & 0 deletions pkg/servicetest/testdata/services/docker-compose.beanstalkd.yaml
@@ -0,0 +1,16 @@
# ddev beanstalkd recipe file
#
# To use this in your own project: Copy this file to your project's .ddev folder.

version: '3.6'

services:
beanstalk: # This is the service name used when running ddev commands accepting the --service flag
container_name: ddev-${DDEV_SITENAME}-beanstalk # This is the name of the container. It is recommended to follow the same name convention used in the main docker-compose.yml file.
image: schickling/beanstalkd:latest
restart: always
ports:
- 11300 # beanstalk is available at this port inside the container (default port for beanstalkd)
labels:
# These labels ensure this service is discoverable by ddev
com.ddev.site-name: ${DDEV_SITENAME}

0 comments on commit 76187c4

Please sign in to comment.