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