Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to add a beanstalk queue, fixes #1313 #1315

Merged
merged 1 commit into from
Jan 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/users/extend/additional-services.md
Original file line number Diff line number Diff line change
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`.
Original file line number Diff line number Diff line change
@@ -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}