代码拉取完成,页面将自动刷新
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:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。