docker

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

commit 45fc2f28b14a616dcfb12b08d6e9450c7971d358
parent 749c62c8e52fd8b18a97a8fec2e007f05420e68e
Author: Xiaodong Xu <[email protected]>
Date:   Wed May 23 14:10:11 +0800

Add LEMP

Diffstat:
README.md | 2+-
lemp/docker-compose.yml | 26++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md @@ -1,4 +1,4 @@ -LNMP +LEMP ---- + CentOS 7.4.1708 diff --git a/lemp/docker-compose.yml b/lemp/docker-compose.yml @@ -0,0 +1,26 @@ +version: '2' + +services: + php: + image: php:7.1-fpm + restart: always + + nginx: + image: nginx:stable + restart: always + ports: + - 80:80 + - 443:443 + volumes: + - ./conf.d:/etc/nginx/conf.d + - ./data:/usr/share/nginx/html + + mysql: + image: mysql:5.7 + restart: always + ports: + - 3306:3306 + volumes: + - /var/local/mysql:/var/lib/mysql + environment: + - MYSQL_ROOT_PASSWORD=root