代码拉取完成,页面将自动刷新
同步操作将从 khs1994-docker/lnmp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#
# @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:
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。