docker

Docker for services
git clone git://git.unixkoans.com/docker.git
Log | Files | Refs

commit e3bb01c35540c6e233e7cb4bea2d1928359600d1
parent baa6a5f851b32d00d2c46ad2a8ca4a0645ebcef5
Author: Xiaodong Xu <xuxd@inedcn.com>
Date:   Mon May 28 15:06:53 +0800

Update LEMP

Diffstat:
lemp/docker-compose.yml | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/lemp/docker-compose.yml b/lemp/docker-compose.yml @@ -6,7 +6,7 @@ services: restart: always volumes: - ./www.conf:/usr/local/etc/php-fpm.d/www.conf - - ./data:/var/www/html + - ./data/html:/var/www/html nginx: image: nginx:stable @@ -14,13 +14,14 @@ services: depends_on: - php - mysql + - redis ports: - 80:80 - 443:443 volumes: - ./nginx.conf:/etc/nginx/nginx.conf - ./conf.d:/etc/nginx/conf.d - - ./data:/var/www/html + - ./data/html:/var/www/html mysql: image: mysql:5.7 @@ -31,3 +32,9 @@ services: - /var/local/mysql:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=root + + redis: + image: redis:3 + restart: always + volumes: + - ./data/redis:/data