加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docker-compose.yml 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Young 提交于 2020-07-09 12:19 . up
nginx:
container_name: nginx
image: nginx:latest
ports:
- "80:80"
- "443:443"
volumes:
- ./app:/usr/share/nginx/html
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:rw
- ./nginx/conf.d/:/etc/nginx/conf.d/:rw
- ./nginx/ca:/etc/nginx/ca:ro
- /etc/localtime:/etc/localtime:ro
- ./logs/nginx:/var/log/nginx:rw
links:
- php:__DOCKER_PHP_FPM__
- php7:__DOCKER_PHP7_FPM__
php:
container_name: php
build: ./php
ports:
- "9000:9000"
volumes:
- ./app:/usr/share/nginx/html
- ./php/etc:/usr/local/etc/php:rw
- /etc/localtime:/etc/localtime:ro
- ./php/etc/php-fpm.conf:/usr/local/etc/php-fpm.conf:rw
- ./logs/php:/var/log/php:rw
links:
- mysql:mysql
mysql:
container_name: mysql
build: ./mysql
ports:
- "127.0.0.1:3306:3306"
volumes:
- ./mysql/data:/var/lib/mysql:rw
- ./mysql/sql:/tmp/sql:rw
- ./mysql/etc:/etc/mysql:rw
- /etc/localtime:/etc/localtime:ro
environment:
- MYSQL_ROOT_PASSWORD=123456
php7:
container_name: php7
build: ./php7
ports:
- "9001:9000"
volumes:
- ./app:/usr/share/nginx/html
- ./php7/etc:/usr/local/etc/php:rw
- /etc/localtime:/etc/localtime:ro
- ./php7/etc/php-fpm.conf:/usr/local/etc/php-fpm.conf:rw
- ./logs/php7:/var/log/php:rw
links:
- mysql:mysql
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化