代码拉取完成,页面将自动刷新
# cat docker-compose.yml
version: '3'
networks:
dev:
services:
mysql:
image: mysql:8
volumes:
- "D:/docker/mysql/.data:/var/lib/mysql"
environment:
TZ: Asia/Shanghai
MYSQL_ROOT_PASSWORD: root
networks:
- dev
ports:
- "3306:3306"
# 解决win10以下初始化报错的问题
command: "--innodb_use_native_aio=0"
# restart: always
redis:
image: redis:5
volumes:
- "D:/docker/redis/.data:/data"
- "D:/docker/redis/redis.conf:/usr/local/etc/redis.conf"
environment:
TZ: Asia/Shanghai
networks:
- dev
ports:
- "6379:6379"
# restart: always
command: ["redis-server", "/usr/local/etc/redis.conf"]
php7.3-fpm-dev:
image: zhimiao/php:7.3-fpm-dev
volumes:
- "D:/docker/wwwroot:/var/www/html"
- "D:/docker/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
environment:
TZ: Asia/Shanghai
networks:
- dev
ports:
- "9073:9000"
# restart: always
nginx:
image: nginx:1.15
depends_on:
- php7.3-fpm-dev
volumes:
- "D:/docker/nginx/vhost:/etc/nginx/conf.d"
- "D:/docker/nginx/vhost/docker.server:/etc/nginx/docker.server"
- "D:/docker/wwwroot:/usr/share/nginx/"
environment:
TZ: Asia/Shanghai
networks:
- dev
ports:
- "1300-1400:1300-1400"
# restart: always
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。