drupal

shinsenter/drupal Docker Image

适用于PHP/Drupal的生产就绪Docker镜像,具备自动Drupal安装程序。

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

shinsenter/drupal

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

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

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, let you configure PHP and PHP-FPM settings through environment variables, with no image rebuild required.

These images also include the latest version of [***]

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 drupal
  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 ./drupal:/var/www/html \
    shinsenter/drupal: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 are reflected inside the container.

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. Copy or mount your certificates from the host machine into the container, overwriting the default files.

Using Dockerfile

Dockerfile
FROM shinsenter/drupal: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 ./drupal/ /var/www/html/

Using docker run

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

Using docker-compose

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

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 rebuild the Docker images when upstream sources (PHP, base OS, Composer, etc.) publish an update, so they stay up-to-date. The images in this repo are regularly updated under the same tag names.

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

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

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

Supported Platforms

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

Note: From 2026-10-25, the rarely used platforms linux/386, linux/arm/v7, linux/ppc64le and linux/s390x are no longer built. Tags published before that date keep them until they are rebuilt.

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.

镜像拉取方式

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

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

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

DockerHub 原生拉取命令

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