Sign inSign up

ywsj/onenav-php

By ywsj

Updated 3 months ago

ywsj/onenav-php — 通用 PHP 运行环境

Image
Developer tools
0

997

ywsj/onenav-php repository overview

轻量级 PHP 8.1 + Apache + SQLite3 运行环境,适用于各类 PHP 项目。

✨ 特性

  • PHP 8.1 + Apache(官方 php:8.1-apache 基础镜像)
  • 内置 PDO SQLite3 扩展
  • 已启用 Apache rewrite 模块
  • 允许 .htaccess 覆盖
  • 多架构支持:linux/amd64 + linux/arm64

🚀 快速使用

docker run -d --name myapp -p 8080:80 -v ./html:/var/www/html ywsj/onenav-php:latest

或使用 docker-compose:

services:
  web:
    image: ywsj/onenav-php:latest
    container_name: myapp
    restart: unless-stopped
    ports:
      - "8080:80"
    volumes:
      - ./html:/var/www/html

📌 说明

本镜像只提供 PHP 运行环境,不包含项目代码。请将你的项目目录映射到 /var/www/html

Tag summary

Content type

Image

Digest

sha256:83eb07fea

Size

169 MB

Last updated

3 months ago

docker pull ywsj/onenav-php