coolify

shinsenter/coolify Docker Image

生产就绪的PHP/Coolify Docker镜像,包含自动Coolify安装程序,支持通过环境变量配置PHP和PHP-FPM设置,无需重建镜像,并内置最新版Composer,便于快速启动项目。

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

shinsenter/coolify

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

  • Docker Hub: https://hub.docker.com/r/shinsenter/coolify
  • GitHub Packages: https://code.shin.company/php/pkgs/container/coolify
  • 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 coolify
  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 ./coolify:/var/www/html \
    shinsenter/coolify: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/coolify: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 ./coolify/ /var/www/html/

Using docker run

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

Using docker-compose

yml
services:
  web:
    image: shinsenter/coolify:latest
    volumes:
      - ./coolify:/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/coolify:latest, and tag it with a name that indicates its stability, such as your-repo/coolify:stable using the below commands:

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

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

更多相关 Docker 镜像与资源

以下是 shinsenter/coolify 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:

镜像拉取方式

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

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

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

DockerHub 原生拉取命令

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