frankenphp

shinsenter/frankenphp Docker Image

适用于生产和开发环境的PHP FrankenPHP Docker镜像。

8 次收藏下载次数: 0状态:社区镜像维护者:shinsenter仓库类型:镜像最近更新:
下载命令
点击查看

shinsenter/frankenphp

🌏 (PHP) FrankenPHP Docker images for both production and development.

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

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, with no image rebuild required.

These images also come with the latest version of [***]

Usage

shell
docker run -p 80:80 -p 443:443 -p 443:443/udp \
    -v ./myproject:/var/www/html \
    shinsenter/frankenphp:latest

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

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 in production, replace these files with your own certificate and key, either by copying or mounting them from the host into the container.

Using Dockerfile

Dockerfile
FROM shinsenter/frankenphp:latest

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

Using docker run

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

Using docker-compose

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

Supported Platforms

Check our https://hub.docker.com/r/shinsenter/frankenphp/tags for all available platforms. The Docker images are available for both Debian and Alpine versions.

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/frankenphp:latest, and tag it with a name that indicates its stability, such as your-repo/frankenphp:stable using the below commands:

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

Then use the image your-repo/frankenphp: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.

License

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

Please respect the work that went into these images. If you reuse ideas from this project, credit is appreciated.


From Vietnam 🇻🇳 with love.

镜像拉取方式

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

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

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

DockerHub 原生拉取命令

docker pull shinsenter/frankenphp:<标签>
专业版 · 高速稳定拉取镜像
50GB 仅 ¥8/年
高速镜像下载在线技术支持专业版保障服务可用付费会员免广告