1 Star 1 Fork 0

shmilylbelva/dnmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-compose54.yml 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
shmilylbelva 提交于 2018-06-07 15:59 . Initial commit
version: "3"
services:
nginx:
image: nginx:alpine
container_name: dnmp-nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./www/:/var/www/html/:rw
- ./conf/conf.d:/etc/nginx/conf.d/:ro
- ./conf/nginx.conf:/etc/nginx/nginx.conf:ro
- ./log/:/var/log/dnmp/:rw
networks:
- net-php
php:
build: ./php/php54/
container_name: dnmp-php
expose:
- "9000"
volumes:
- ./www/:/var/www/html/:rw
- ./conf/php.ini:/usr/local/etc/php/php.ini:ro
- ./conf/php-fpm.d/www.conf:/usr/local/etc/php-fpm.d/www.conf:rw
- ./log/:/var/log/dnmp/:rw
networks:
- net-php
- net-mysql
- net-redis
mysql:
image: mysql:latest
container_name: dnmp-mysql
ports:
- "3306:3306"
volumes:
- ./conf/my.cnf:/etc/mysql/my.cnf:ro
- ./mysql/:/var/lib/mysql/:rw
- ./log/:/var/log/dnmp/:rw
networks:
- net-mysql
environment:
MYSQL_ROOT_PASSWORD: "123456"
redis:
image: redis:latest
container_name: dnmp-redis
networks:
- net-redis
ports:
- "6379:6379"
networks:
net-php:
net-mysql:
net-redis:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/shmilylbelva/dnmp.git
git@gitee.com:shmilylbelva/dnmp.git
shmilylbelva
dnmp
dnmp
master

搜索帮助