Skip to content
Open
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
1 change: 1 addition & 0 deletions Dockerfiles/php-fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ RUN apt-get update -yqq \




# Install needed php extensions: memcache
RUN curl -fsSL 'https://github.com/websupport-sk/pecl-memcache/archive/NON_BLOCKING_IO_php7.zip' -o memcache.zip \
&& unzip memcache.zip \
Expand Down
21 changes: 21 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,26 @@ services:
# - any-your-project-domain
# - local.project

MEMCACHED:
hostname: docker-memcached
image: memcached:1.5
ports:
- 11211:11211
environment:
- MEMCACHED_USERNAME=${MEMCACHED_USERNAME}
- MEMCACHED_PASSWORD=${MEMCACHED_PASSWORD}
command:
- '-m 128'
deploy:
resources:
limits:
cpus: '0.20'
memory: 192M
restart_policy:
condition: on-failure
networks:
- app_net

WORKSPACE:
hostname: docker-workspace
build:
Expand All @@ -69,6 +89,7 @@ services:
- ${VOLUMES_DRIVER}:/var/www
depends_on:
- FPM
- MEMCACHED
restart: on-failure
extra_hosts:
- "localhost:172.16.1.50"
Expand Down
6 changes: 6 additions & 0 deletions env-example
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@

# e.g. /Users/USER_NAME/Projects
VOLUMES_DRIVER=



# memcached
MEMCACHED_USERNAME=
MEMCACHED_PASSWORD=