1 Star 0 Fork 11

gordensong/lnmp

forked from khs1994-docker/lnmp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
docker-lnmp.override.example.yml 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
khs1994 提交于 2023-05-10 23:50 . [PHP] Update to v8.2.3 v8.1.12 v8.0.26
#
# @link https://www.ruanyifeng.com/blog/2016/07/yaml.html
#
x-common:
&common
labels:
- ${LNMP_DOMAIN:-com.khs1994.lnmp}=true
- ${LNMP_DOMAIN:-com.khs1994.lnmp}.app.env=development
#
# 此文件具有最高优先级,可以通过以下命令查看最终的 compose 文件
#
# $ ./lnmp-docker config > docker-compose.yaml
#
services:
## https://docs.docker.com/compose/extends/
# add service
my-service:
image: ${LNMP_LIBRARY_NS:-library}/bash
# override service
# php8:
# &php8
# # ! change php8 default image
# image: username/php:${LNMP_PHP8_VERSION:-8.2.3}-fpm-alpine
# # ! cn mirror image
# # image: ccr.ccs.tencentyun.com/khs1994/php:${LNMP_PHP8_VERSION:-8.2.3}-fpm-alpine
# # ! s6
# # image: ${LNMP_DOCKER_IMAGE_PREFIX:-khs1994}/php:${LNMP_PHP8_VERSION:-8.2.3}-s6-alpine
# # command: []
# # ! open more port
# ports:
# - "9000"
# - "10001:10001"
# # ! add more volumes
# volumes:
# - git-sync-data:/app/git-sync
# composer:
# << : *php8
# volumes:
# - ./config/composer/auth.json:/tmp/composer/auth.json
# nginx-unit:
# << : *php8
# mysql:
# # change default volumes settings
# volumes:
# - ./data:/var/lib/mysql
# More Demo
# phpmyadmin:
# image: phpmyadmin:5.2.0-fpm-alpine
# volumes:
# - phpmyadmin:/var/www/html
# healthcheck:
# test: ["NONE"]
nginx:
# volumes:
# - git-sync-data:/app/git-sync
# - phpmyadmin:/var/www/html
depends_on:
- php8
# ports:
# - 8022:8022
swoole:
<< : *common
image: ${LNMP_DOCKER_IMAGE_PREFIX:-khs1994}/php:${LNMP_PHP_VERSION:-8.2.3}-swoole-alpine
# command 指令只需传入文件名即可
command:
- /app/swoole/index.php
ports:
- 10001:10001
networks:
- backend
volumes:
- ${APP_ROOT:-./app}:${LNMP_PHP_PATH:-/app}
- ./config/php8/php.ini:/usr/local/etc/php/php.ini:ro
- ./config/php8/docker-php.ini:/usr/local/etc/php/conf.d/docker-php.ini:ro
- ./log/php:/var/log/php
# volumes:
# git-sync-data:
# phpmyadmin:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Docker
1
https://gitee.com/gordensong/lnmp.git
git@gitee.com:gordensong/lnmp.git
gordensong
lnmp
lnmp
master

搜索帮助