-
-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Memcached service configuration file and documentation. (#927)
- Loading branch information
1 parent
165ba99
commit 6da3770
Showing
5 changed files
with
103 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# Additional Service Configurations for ddev | ||
|
||
This directory contains additional service configurations that can be added to the .ddev directory for a project to enable additional services for the project. Setup instructions for these service files can be found in the [Additional Services Documentation](). | ||
This directory contains additional service configurations that can be added to the .ddev directory for a project to enable additional services for the project. Setup instructions for these service files can be found in the [Additional Services Documentation](https://ddev.readthedocs.io/en/latest/users/extend/additional-services/). |
20 changes: 20 additions & 0 deletions
20
pkg/servicetest/testdata/services/docker-compose.memcached.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# ddev memcached recipe file | ||
# | ||
# To use this in your own project: Copy this file to your project's .ddev folder. | ||
# Edit the 'command' settings to change CLI flags sent to memcached. | ||
# Defaults to '-m 128' to allocate 128 MB of memcached storage. | ||
|
||
version: '3' | ||
|
||
services: | ||
memcached: # This is the service name used when running ddev commands accepting the --service flag | ||
container_name: ddev-${DDEV_SITENAME}-memcached # 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: memcached:1.5 | ||
restart: always | ||
ports: | ||
- 11211 # memcached is available at this port inside the container | ||
labels: | ||
# These labels ensure this service is discoverable by ddev | ||
com.ddev.site-name: ${DDEV_SITENAME} | ||
|
||
command: ["-m", "128"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters