Add redis; use alpine images

This commit is contained in:
Nabeel Shahzad
2019-05-12 10:51:06 -05:00
parent 047a72f3da
commit 1b1cf2a891
5 changed files with 256 additions and 9 deletions

View File

@@ -7,22 +7,23 @@ services:
context: ./docker/php
environment:
DB_HOST: mysql
REDIS_HOST: redis
volumes:
- ./:/var/www
- ./docker/php/www.conf:/usr/local/etc/php-fpm.d/www.conf
depends_on:
- nginx
- mysql
- redis
nginx:
image: nginx:1.13.8
image: nginx:1.15.12-alpine
command: /bin/bash -c "exec nginx -g 'daemon off;'"
volumes:
- ./:/var/www
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- 80:80
depends_on:
- app
mysql:
image: mysql:5.7.26
@@ -37,6 +38,9 @@ services:
ports:
- 3306:3306
redis:
image: redis:5.0.4-alpine
# Use this to tail the logs so it's just all in a single window
logs:
image: busybox