轩辕镜像 官方专业版
轩辕镜像
专业版
轩辕镜像 官方专业版
轩辕镜像
专业版
首页个人中心搜索镜像
交易
充值流量¥8起我的订单
文档
工具
提交工单页面收录
laravel

shinsenter/laravel

shinsenter

生产就绪的PHP/Laravel Docker镜像,具备自动Laravel安装功能,支持通过环境变量配置PHP和PHP-FPM,无需重建镜像即可调整设置,包含最新Composer,提供Debian和Alpine版本,方便快速启动项目。

28 次收藏下载次数: 0状态:社区镜像维护者:shinsenter仓库类型:镜像最近更新:3 天前
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明

如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。

只需在 AI 对话中先发送下面这段话即可:

请先阅读并遵守:https://xuanyuan.cloud/agents.md

未读文档前不要生成 pull 命令或排错方案。

查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。

DockerHub 官方简介
轩辕镜像中文简介
下载命令
镜像标签列表与下载命令
轩辕镜像,加速的不只是镜像。
点击查看

shinsenter/laravel

🔋 (PHP / Laravel) Production-ready Docker images with automatic Laravel installer.

  • Docker Hub: https://hub.docker.com/r/shinsenter/laravel
  • GitHub Packages: https://code.shin.company/php/pkgs/container/laravel
  • You can also find and use https://hub.docker.com/u/shinsenter.

The Docker images are available for both Debian and Alpine versions.

Introduction

Our PHP Docker images, available on https://hub.docker.com/r/shinsenter/php, are designed for easy configuration of PHP and PHP-FPM settings via environment variables. This approach eliminates the need to rebuild images when making configuration changes.

These images also come with the latest version of [***] enabling you to start projects quickly without additional installations.

Usage

Check out https://hub.docker.com/r/shinsenter/php to learn how to customize these Docker images for your projects.

Creating a New Project

When you mount an empty directory into the container, it will automatically download the entire source code for the framework, allowing you to bootstrap a new project quickly.

Steps to Create a New Project

  1. Create an empty directory on your host machine for your project code. For example:
shell
mkdir laravel
  1. Run the container and mount the empty directory as a volume. For example:
shell
docker run -p 80:80 -p 443:443 -p 443:443/udp \
    -v ./laravel:/var/www/html \
    shinsenter/laravel:latest

The container will detect the empty directory mounted to /var/www/html and clone the framework source code into it.

Using an Existing Project

You can mount your application code from your host machine to the /var/www/html directory inside the container.

Because the source code is mounted as a volume, any changes made on the host machine will be reflected inside the container. This setup allows you to run builds, tests, and other tasks within the container while keeping your code on the host.

Using HTTPS

The Docker images come with pre-generated SSL certificate files for testing HTTPS locally:

  • /etc/ssl/site/server.crt
  • /etc/ssl/site/server.key

To use valid HTTPS certificates for your production website, replace these files with your own valid SSL certificates. You can do this by copying or mounting your certificates from the host machine into the container. Simply overwrite the default certificate files with your valid certificate and key files to enable true HTTPS for your production website.

Using Dockerfile

Dockerfile
FROM shinsenter/laravel:latest

# Copy your own certs into the container
COPY my_domain.crt /etc/ssl/site/server.crt
COPY my_domain.key /etc/ssl/site/server.key

# Add your instructions here
# For example:
# ADD --chown=$APP_USER:$APP_GROUP ./laravel/ /var/www/html/

Using docker run

shell
docker run -p 80:80 -p 443:443 -p 443:443/udp \
    -v ./laravel:/var/www/html \
    -v ./my_domain.crt:/etc/ssl/site/server.crt \
    -v ./my_domain.key:/etc/ssl/site/server.key \
    shinsenter/laravel:latest

Using docker-compose

yml
services:
  web:
    image: shinsenter/laravel:latest
    volumes:
      - ./laravel:/var/www/html
      - ./my_domain.crt:/etc/ssl/site/server.crt
      - ./my_domain.key:/etc/ssl/site/server.key

Environment variables

You can optionally set the following environment variables in the container to enable certain services to run alongside the web server.

📝 Note: you'll need to install the required packages and create the necessary configs yourself for features like Laravel Pulse, Laravel Horizon or Laravel Reverb.

Environment VariableDescription
LARAVEL_AUTO_MIGRATIONWhether to automatically run database migrations when the app boots. Set to 0 to disable running migration. Default is 1.
LARAVEL_AUTO_MIGRATION_OPTIONSAdditional options/flags to pass to the artisan migrate command (e.g. --seed).
LARAVEL_ENABLE_QUEUE_WORKEREnables supervisor service for the Laravel queue worker. Set to 1 to start processing jobs. Default is 0.
LARAVEL_QUEUE_WORKER_OPTIONSDefines custom options for the Laravel queue worker (e.g., connection, delay).
LARAVEL_ENABLE_SCHEDULEREnables supervisor service for the Laravel scheduler. Set to 0 to disable running scheduled tasks. Default is 1.
LARAVEL_SCHEDULER_OPTIONSSpecifies additional options for the scheduler execution.
LARAVEL_ENABLE_HORIZONEnables supervisor service for Laravel Horizon, a dashboard for managing queues. Default is 0.
LARAVEL_HORIZON_OPTIONSOptions for customizing Laravel Horizon behavior (e.g., environment, queue names).
LARAVEL_ENABLE_PULSEEnables supervisor service for Laravel Pulse for application performance monitoring. Default is 0.
LARAVEL_PULSE_OPTIONSConfiguration options for Laravel Pulse (e.g., port, storage).
LARAVEL_ENABLE_REVERBEnables supervisor service for Laravel Reverb for real-time WebSocket communication. Default is 0.
LARAVEL_REVERB_OPTIONSConfiguration options for Laravel Reverb (e.g., port, storage).

Stable Image Tags

The release versions on https://code.shin.company/php don't guarantee that Docker images built from the same source code will always be identical.

We build new Docker images daily to ensure they stay up-to-date with the latest upstream updates for PHP, base OS, Composer, etc. The images in this repo are regularly updated under the same tag names.

But you can pull the image from shinsenter/laravel:latest, and tag it with a name that indicates its stability, such as your-repo/laravel:stable using the below commands:

shell
docker pull shinsenter/laravel:latest
docker tag  shinsenter/laravel:latest your-repo/laravel:stable
docker push your-repo/laravel:stable

Then use the image your-repo/laravel:stable as a base image to build containers for production.

Contributing

If you find these images useful, *** donating via *** or opening an issue on https://code.shin.company/php/issues/new.

Your support helps maintain and improve these images for the community.

License

This project is licensed under the terms of the https://code.shin.company/php/blob/main/LICENSE.

Thank you for recognizing the intellectual effort behind this project. If you plan to use or build upon any of its ideas, I kindly ask that you give appropriate credit.


From Vietnam 🇻🇳 with love.

镜像拉取方式

您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。

轩辕镜像加速拉取命令点我查看更多 laravel 镜像标签

docker pull docker.xuanyuan.run/shinsenter/laravel:<标签>

使用方法:

  • 登录认证方式
  • 免认证方式

DockerHub 原生拉取命令

docker pull shinsenter/laravel:<标签>

轩辕镜像配置手册

按平台快速找到配置文档

一键安装

一键安装 Docker

Linux Docker 一键安装

AI

用 AI 使用轩辕镜像

agents.md · AI 对话 · 提示词

Docker

登录仓库拉取

登录认证 · 私有仓库

专属域名拉取

免登录 · 高速拉取

Linux

Docker 镜像配置

Windows / Mac

Docker Desktop 配置

MacOS OrbStack

OrbStack 容器

Apple Container

macOS 原生容器

Docker Compose

Compose 项目配置

NAS

群晖

Synology 配置

飞牛

fnOS 镜像配置

绿联

绿联 NAS

威联通

QNAP 配置

极空间

极空间 NAS

Unraid

Unraid NAS

企业仓库

其他仓库

ghcr · Quay · nvcr

Harbor 镜像源

Proxy Repository 对接

Portainer 镜像源

Registries 配置

Nexus 镜像源

Docker Proxy 缓存

开发工具

Dev Containers

VS Code 开发容器

Podman

Podman 配置指南

Singularity / Apptainer

HPC 科学计算容器

Kubernetes

K8s Containerd

Kubernetes · Containerd

K3s

轻量级集群

面板 / 网络

爱快路由

爱快 4.0 · iKuai 镜像加速

宝塔面板

一键配置镜像源

需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单

镜像拉取常见问题

功能

版本功能对比

功能对比 · 版本选择

支持的镜像仓库

Docker Hub · GCR · GHCR

专属域名用法

专属域名 · 开启停用 · 多仓库

新手拉取配置

登录 · 专属域名 · 配置

docker search 限制

专属域名 · Hub 搜索

不支持 push

仅支持 pull · 不支持

拉取速度原因

带宽 · 缓存 · 冷热镜像

错误码

402 与流量用尽

402 · 流量包 · 充值

401 认证失败

401 · docker login

manifest unknown

标签错误 · 镜像不存在

410 Gone 排查

410 · Docker 升级

429 限流

免费版 · 专业版 · 企业版 · 请求频率

其他报错

DNS 超时

DNS 解析 · 网络超时

TLS 证书失败

no matching manifest(架构)

docker.sock / daemon

账号

失败是否计费

manifest · blob · 计费

申请开票(企业 / 个人)

开票 · 发票 · 工单

修改登录密码

网站 · 仓库 · 重置

注销账户

工单 · 数据 · 注销

原理

mirrors 不生效

daemon.json · 重启

去掉域名前缀

docker tag · 重命名

指定架构拉取

ARM64 · AMD64 · 多架构

latest 与「最新」

digest · 版本号 · 标签

查看全部问题→

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

用户头像

oldzhang

运维工程师

Linux服务器

5

"Docker访问体验非常流畅,大镜像也能快速完成下载。"

轩辕镜像
镜像详情
...
shinsenter/laravel
定价查看流量套餐与价格
博客Docker 镜像公告与技术博客
专业版 · 高速稳定拉取镜像
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
50GB 仅 ¥8/年
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载·在线技术支持·99.95% SLA 保障·付费会员免广告
用户协议·隐私政策·增值电信业务经营许可证:浙B2-20261007·©2024-2026 源码跳动©2024-2026 杭州源码跳动科技有限公司·商务合作:点击复制邮箱

更多 laravel 镜像推荐

bitnami/laravel logo

bitnami/laravel

Bitnami Secure Images(VMware Tanzu)
Bitnami Laravel安全镜像,原Docker Hub免费版已停止提供,现为基于Debian和Photon基础OS的OCI制品,需通过商业订阅获取。
403 次收藏100万+ 次下载
9 个月前更新
laravelfans/laravel logo

laravelfans/laravel

laravelfans
用于生产和开发的Laravel Docker镜像,基于官方PHP Apache镜像,每日更新
18 次收藏5万+ 次下载
3 个月前更新
b4commerce/laravel logo

b4commerce/laravel

b4commerce
Laravel基础镜像,提供运行Laravel应用所需的基础环境,用于简化Laravel项目的开发、构建与部署流程。
2 次收藏10万+ 次下载
8 个月前更新
pinedamg/laravel logo

pinedamg/laravel

pinedamg
Laravel
1 次收藏1万+ 次下载
8 年前更新
olafnorge/laravel logo

olafnorge/laravel

olafnorge
Laravel安装的基础镜像。
5万+ 次下载
3 年前更新
cmptstks/laravel logo

cmptstks/laravel

cmptstks
这是基于Bitnami Laravel镜像优化的Docker容器,解决权限问题、改进MySQL连接方式并自动管理数据库,适用于Laravel 5应用的快速稳定部署。
1万+ 次下载
8 年前更新

查看更多 laravel 相关镜像