1 Star 0 Fork 0

yangsheng/docker-lnmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.84 KB
一键复制 编辑 原始数据 按行查看 历史
yangsheng 提交于 2018-01-15 15:31 . hapoxy
version : '3'
services :
mysql:
image: mysql:5.7
container_name: 'lnmp-mysql'
restart: always
volumes:
- "./data/mysql:/var/lib/mysql:rw"
expose:
- "3306"
ports:
- "3309:3306"
environment:
TZ: 'Asia/Shanghai'
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
networks:
- lnmp-net
php:
# image: 'lnmp-php:latest'
build:
context: ./docker/php
dockerfile : Dockerfile
volumes :
- ./src:/usr/local/nginx/html
- ./docker/php/conf/php.ini:/usr/local/php/lib/php.ini:rw
container_name : 'lnmp-php'
restart: always
networks:
lnmp-net:
nginx:
# image: 'lnmp-nginx:latest'
build:
context: ./docker/nginx
dockerfile: Dockerfile
# ports:
# - "80:80"
# - "443:443"
volumes:
- "./docker/nginx/logs:/usr/local/nginx/logs"
- "./src:/usr/local/nginx/html"
- "./docker/nginx/conf/nginx.conf:/usr/local/nginx/conf/nginx.conf:rw"
- "./docker/nginx/conf/vhost:/usr/local/nginx/conf/vhost:rw"
container_name : lnmp-nginx
restart: always
networks:
lnmp-net:
aliases:
- docker-lnmp.com
haproxy:
image: haproxy:1.8.3
container_name: 'lnmp-haproxy'
volumes:
- ./docker/haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
depends_on:
- php
- nginx
ports:
- "70:70"
- "80:80"
- "443:443"
restart: always
networks:
lnmp-net:
# aliases:
# - docker-lnmp
networks:
lnmp-net:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/aiysya/docker-lnmp.git
git@gitee.com:aiysya/docker-lnmp.git
aiysya
docker-lnmp
docker-lnmp
master

搜索帮助