代码拉取完成,页面将自动刷新
version: '3'
services:
nginx:
image: nginx:alpine
ports:
- "80:80"
- "8080:8080"
- "443:443"
volumes:
- ${WORKSPACES}:/var/www/html/:rw,cached
- ./conf/nginx/conf.d:/etc/nginx/conf.d/:ro,cached
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro,cached
- ./log/nginx/:/var/log/nginx/:rw,cached
links:
- php74:fpm74
environment:
- TZ=Asia/Shanghai
networks:
docker_net:
ipv4_address: ${NGINX_IP}
php74:
image: gopeak/masterlab:php-fpm-74
expose:
- "9000"
ports:
- "9000:9000"
volumes:
- ${WORKSPACES}:/var/www/html/:rw,cached
- ./conf/php/php74.ini:/usr/local/etc/php/php.ini:ro,cached
- ./conf/php/php-fpm.d/www74.conf:/usr/local/etc/php-fpm.d/www.conf:rw,cached
- ./log/php-fpm/:/var/log/php-fpm/:rw,cached
links:
- mysql:mysql
- redis:redis
networks:
docker_net:
ipv4_address: ${PHP74_IP}
mysql:
image: mysql:5.7
ports:
- "3306:3306"
volumes:
- ./conf/mysql/my.cnf:/etc/mysql/my.cnf:ro,cached
- ./mysql/:/var/lib/mysql/:rw,cached
- ./log/mysql/:/var/log/mysql/:rw,cached
environment:
MYSQL_ROOT_PASSWORD: "123456"
networks:
docker_net:
ipv4_address: ${MYSQL_IP}
redis:
image: redis:latest
ports:
- "10379:10379"
networks:
docker_net:
ipv4_address: ${REDIS_IP}
networks:
docker_net:
driver: bridge
ipam:
driver: default
config:
-
subnet: "${DOCKER_SUBNET}"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。