1 Star 0 Fork 247

流风一剑1990/dnmp

forked from yeszao/dnmp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
docker-compose-sample.yml 2.41 KB
一键复制 编辑 原始数据 按行查看 历史
version: "3"
services:
nginx:
image: nginx:${NGINX_VERSION}
ports:
- "${NGINX_HTTP_HOST_PORT}:80"
- "${NGINX_HTTPS_HOST_PORT}:443"
volumes:
- ${SOURCE_DIR}:/var/www/html/:rw
- ${NGINX_CONFD_DIR}:/etc/nginx/conf.d/:rw
- ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf:ro
- ${NGINX_LOG_DIR}:/var/log/nginx/:rw
restart: always
networks:
- default
php72:
build:
context: .
args:
PHP_VERSION: ${PHP72_VERSION}
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
PHP_EXTENSIONS: ${PHP72_EXTENSIONS}
MORE_EXTENSION_INSTALLER: php72.sh
volumes:
- ${SOURCE_DIR}:/var/www/html/:rw
- ${PHP72_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP72_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
- ${PHP72_LOG_DIR}:/var/log/php
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
php56:
build:
context: .
args:
PHP_VERSION: ${PHP56_VERSION}
ALPINE_REPOSITORIES: ${ALPINE_REPOSITORIES}
PHP_EXTENSIONS: ${PHP56_EXTENSIONS}
MORE_EXTENSION_INSTALLER: php56.sh
volumes:
- ${SOURCE_DIR}:/var/www/html/:rw
- ${PHP56_PHP_CONF_FILE}:/usr/local/etc/php/php.ini:ro
- ${PHP56_FPM_CONF_FILE}:/usr/local/etc/php-fpm.d/www.conf:rw
- ${PHP56_LOG_DIR}:/var/log/php
restart: always
cap_add:
- SYS_PTRACE
networks:
- default
mysql:
image: mysql:${MYSQL_VERSION}
ports:
- "${MYSQL_HOST_PORT}:3306"
volumes:
- ${MYSQL_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
- ${MYSQL_DATA_DIR}:/var/lib/mysql/:rw
restart: always
networks:
- default
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
redis:
image: redis:${REDIS_VERSION}
ports:
- "${REDIS_HOST_PORT}:6379"
volumes:
- ${REDIS_CONF_FILE}:/etc/redis.conf:ro
restart: always
entrypoint: ["redis-server", "/etc/redis.conf"]
networks:
- default
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
ports:
- "${PHPMYADMIN_HOST_PORT}:80"
networks:
- default
environment:
- PMA_HOST=mysql
- PMA_PORT=3306
phpredisadmin:
image: erikdubbelboer/phpredisadmin:latest
ports:
- "${REDISMYADMIN_HOST_PORT}:80"
networks:
- default
environment:
- REDIS_1_HOST=redis
- REDIS_1_PORT=6379
networks:
default:
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/liufengyijian/dnmp.git
git@gitee.com:liufengyijian/dnmp.git
liufengyijian
dnmp
dnmp
master

搜索帮助