代码拉取完成,页面将自动刷新
services:
nginx:
# image: nginx:1.21.5-alpine
build: ./images/nginx-1.21.5
ports:
- "80:80"
- "443:443"
volumes:
- ../html:/var/www/html
- ./etc/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./etc/nginx/conf.d:/etc/nginx/conf.d
- ./etc/nginx/cert.d:/etc/nginx/cert.d
depends_on:
- php-fpm
php-fpm:
# image: registry.cn-hangzhou.aliyuncs.com/lluck42/php-fpm:php-7.2.8-fpm-stretch
build: ./images/php-7.2-fpm-alpine3.11
volumes:
- ../html:/var/www/html
- ./etc/php/my.ini:/usr/local/etc/php/php.ini
- ./etc/php-fpm/zz-docker.conf:/usr/local/etc/php-fpm.d/zz-docker.conf
- ./tmp/php-fpm:/tmp
mysql8:
build: ./images/mysql-8.0
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- ./data:/var/lib/mysql
- ./etc/mysql8:/etc/mysql/conf.d
- ./tmp/mysql:/tmp
environment:
MYSQL_ROOT_PASSWORD: a.123456
security_opt:
- seccomp:unconfined
restart: on-failure:3
redis:
image: redis:7.0.15-alpine3.19
ports:
- "6379:6379"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。