shinsenter/frankenphp Docker Image
适用于生产和开发环境的PHP FrankenPHP Docker镜像。
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
shelldocker 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
DockerfileFROM 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
shelldocker 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
ymlservices: 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:
shelldocker 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.
shinsenter 命名空间的其他可用镜像:
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 frankenphp 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务