1 Star 2 Fork 1

firego/masterlab-docker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose.yml 1.56 KB
一键复制 编辑 原始数据 按行查看 历史
sven 提交于 2021-07-27 18:41 . Update docker-compose.yml
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}"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/firego/masterlab-docker.git
git@gitee.com:firego/masterlab-docker.git
firego
masterlab-docker
masterlab-docker
master

搜索帮助