跳過到頁腳內容
使用 IRONSECUREDOC

Coolify Docker Compose(開發者如何工作)

Docker has changed the paradigm of software development, shipment, and deployment. It is a containerization platform where a developer can package an application and its dependencies in a deployable container with a minimal footprint. Consistency that the containers guarantee across environments enables seamless deployment and scaling across different environments: from development to testing and into production. With Docker, organizations reduce infrastructure complexity, enhance resource efficiency, and quicken the development lifecycle.

What is Coolify?

Coolify is an open-source, self-hosted platform that aims to make deploying and managing applications, databases, and websites easier. It provides a very user-friendly interface that abstracts the complexity of traditional DevOps processes, allowing developers to deploy applications to any server including their own servers with just a few clicks. Coolify supports popular frameworks, Dockerized applications, static sites, and databases like PostgreSQL and MySQL, making it a versatile tool for developers and small teams. With continuous deployment possible through integrations with cloud platforms and Git repositories, Coolify provides a focus on self-hosting for data privacy and control. Coolify works well for those who wish to automate deployment without necessarily getting into the nitty-gritty of DevOps.

Coolify Docker Compose (How it Works for Developers): Figure 2 - Coolify

Features of Coolify

Coolify is a self-hosted solution to make deployment and management easier. Coolify brings together ease-of-use features with containerization and automation. Key Features include:

Effortless Application Deployment

  • Deploy your applications in no time using the intuitive, web-based interface.
  • Support for Node.js, Python, Ruby, PHP, and many other languages and frameworks.

Dockerized Application Support

  • Easily deploy and manage Docker containerized applications.
  • Handles Docker Compose for multi-container setups.

Static Site Hosting

  • Host static web apps generated with frameworks like Hugo, Jekyll, and Next.js out of the box without any extra configuration.

Database Management

Easy setup and management of popular databases including:

  • PostgreSQL
  • MySQL
  • MongoDB
  • Redis
  • Backup and restore

Git Integration

Connect Coolify with your providers. Currently, GitHub, Bitbucket, and GitLab will work.
Build and Deploy automatically on every push into your repository.

Continuous Deployment

  • Automated deployment pipelines every time something changes in your code.
  • Inbuilt CI/CD for seamless lifecycle management of your application.

Multi-Cloud

  • Deploy applications to any popular cloud platform or your on-premises server.
  • Supports both single-node and multi-node environments.

Resource Monitoring

Real-time monitoring of CPU, memory, and storage usage for deployed applications and databases.

SSL and Custom Domains

  • Automatically configure SSL using Let's Encrypt.
  • Map applications to custom domains with just a few clicks.

Self-hosted for Full Control

  • Retain ownership and control of your deployment environment.
  • No dependency on any third-party PaaS ensures data privacy and security.

Light and Scalable

  • Optimized for small teams and developers, yet able to scale up to bear larger workloads.
  • Harnessing the efficiency of Docker for running several applications with ease.

Open Source

Fully open source, thus enabling community contributions and customizations.

Coolify is a modern, flexible, and user-friendly tool for developers who want to handle deployments themselves without diving into complicated DevOps workflows.

How to install Coolify

Server Requirements:

  • Operating System: Linux (Ubuntu/Debian/CentOS preferred), Windows.
  • CPU: x86_64 architecture.
  • RAM: Minimum 2 GB (4 GB recommended).
  • Disk Space: At least 10 GB of free space.

Docker and Docker Compose.

Download Coolify

Pull the Coolify repository.

git clone https://github.com/coollabsio/coolify.git
cd coolify
git clone https://github.com/coollabsio/coolify.git
cd coolify
SHELL

Coolify Docker Compose (How it Works for Developers): Figure 3 - Coolify Repository

Configure Coolify

Generate a .env file for Coolify:

cp .env.example .env
cp .env.example .env
SHELL

Configure the necessary environment variables:

  • Set COOLIFY_APP_PORT for the port Coolify will run on (default: 3000).
  • If using a custom domain, configure COOLIFY_HOSTED_ON.

Start Coolify

Use the Docker command to start Coolify.

docker-compose up -d
docker-compose up -d
SHELL

Access Coolify

Open your browser and navigate to the below address.

http://localhost:3000

What is IronSecureDoc?

IronSecureDoc is a utility for document management and security with strong encryption, advanced PDF manipulation, and digital signing. It gives companies and developers document confidentiality and integrity with smooth access and, hence, simplifies the processing of PDF documents. This may also be called an Aggressive PDF API in instances when its features allow developers programmatically to create, upload, manipulate, and secure PDF files and documents.

Coolify Docker Compose (How it Works for Developers): Figure 4 - IronSecureDoc: The PDF Security and Compliance Server

Besides this, IronPDF is a PDF API that enables PDF creation from any data input and adds and edits the content with parameters such as text, images, and metadata. That includes facilities like merging several PDFs for composing files, splitting documents, and even annotating comments, highlights, or watermarks.

It offers password protection, AES encryption, and certificate-based access controls that lock all sensitive information and data. Besides this, it allows digital signing to authenticate documents and nonrepudiation-a very important feature in industries like financial, medical, and legal. The audit trail functionality allows tracking of all activities performed on the documents for better compliance and accountability.

Install and Run IronSecureDoc

Pull the Docker image of IronSecureDoc from the repository below by running the following command at the Command Prompt or an open terminal window.

docker pull ironsoftwareofficial/ironsecuredoc
docker pull ironsoftwareofficial/ironsecuredoc
SHELL

Coolify Docker Compose (How it Works for Developers): Figure 5 - Pull IronSecureDoc Docker Image

We pull an image from the Docker container and then use another command to start the IronSecureDoc, an operating container.

docker container run --rm -p 8080:8080 -e IronSecureDoc_LicenseKey=<IRONSECUREDOC_LICENSE_KEY> -e ENVIRONMENT=Development -e HTTP_PORTS=8080 ironsoftwareofficial/ironsecuredoc:latest
docker container run --rm -p 8080:8080 -e IronSecureDoc_LicenseKey=<IRONSECUREDOC_LICENSE_KEY> -e ENVIRONMENT=Development -e HTTP_PORTS=8080 ironsoftwareofficial/ironsecuredoc:latest
SHELL

The Docker run command above will start a container instance of the IronSecureDoc.

Deploy IronSecureDoc on Coolify

Once Coolify is up and running, you can deploy IronSecureDoc as a custom Docker service.

Steps to Add IronSecureDoc to Coolify

Login to Coolify:

Access the web interface of Coolify, for example, http://localhost:3000.

Coolify Docker Compose (How it Works for Developers): Figure 6 - Coolify Web Interface

To create a new application:

Coolify Docker Compose (How it Works for Developers): Figure 7 - New Application

  • Click on "Add New Resources".

Coolify Docker Compose (How it Works for Developers): Figure 8 - Add New Resources

  • Choose "Docker Image".

Configure IronSecureDoc:

  • Name: Give the service a name, for example, IronSecureDoc.
  • Image: Specify the Docker image for IronSecureDoc, for example, ironsoftwareofficial/ironsecuredoc:latest.

Coolify Docker Compose (How it Works for Developers): Figure 9 - Configure IronSecureDoc

  • Ports: Specify the port that IronSecureDoc exposes, for example, 5000.
  • Environment Variables: Add variables required by IronSecureDoc, such as API keys or database URLs.

Deploy the Service:

  • Click "Deploy" to start the container.
  • Once deployed, Coolify will manage the IronSecureDoc instance.

Coolify Docker Compose (How it Works for Developers): Figure 10 - Deploy Service

Adding Password to PDF document

IronSecureDoc's REST API represents an ultra-modern, web-based interface to interface safely with the functionalities for the management of documents and other kinds of data with advanced PDF processing, maintained through RESTful principles. Users would get a straightforward, regulated way to include different areas from IronSecureDoc functionality for custom applications regardless of which stack technologies the users use.

Coolify Docker Compose (How it Works for Developers): Figure 11 - REST API

By posting to the IronSecureDoc API in this way, we may also want to request permissions password in order to encrypt a request with a user password to a document: Link is generated from Coolify server.

curl -X 'POST' \
  'http://c0kwcw4k4wkw8gw4ww8wkg8s.41.243.46.67.sslip.io/v1/document-services/pdfs/encrypt?user_password=demo' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@test.pdf;type=application/pdf'
curl -X 'POST' \
  'http://c0kwcw4k4wkw8gw4ww8wkg8s.41.243.46.67.sslip.io/v1/document-services/pdfs/encrypt?user_password=demo' \
  -H 'accept: */*' \
  -H 'Content-Type: multipart/form-data' \
  -F 'pdf_file=@test.pdf;type=application/pdf'
SHELL

The document output file will be sent and downloaded automatically, and it will be securely saved.

Conclusion

Both Coolify and IronSecureDoc enable developers and organizations to push forward new workflows and extend security in unique ways.

Coolify is an open-source, self-hosted, and developer-friendly alternative to modern PaaS solutions. It provides ease in deploying and managing applications. It will be perfect for those teams that are looking for control, scalability, and ease of use when it comes to maintaining their environments. Having an intuitive interface and popular framework support provides a very strong basis for the needs of modern development.

On the other hand, IronSecureDoc puts much concentration on document integrity and security. Being able to digitally sign Docker images to protect sensitive documents, will meet organizations' needs to ensure compliance, data protection, and trust within their software delivery pipelines.

Dependable and Compliant: It offers complete audit abilities with high security. Using IronSecureDoc REST API, safe printing and effective PDF format and handling can now be easily integrated with the applications created by web, mobile, and corporate systems developers. To read more about the license of IronSecureDoc, visit the licensing page. For information about the products of Iron Software, follow the library suite page.

常見問題解答

我如何使用 Coolify 部署應用程式?

Coolify 通過其直觀的介面簡化了應用程式部署,支持像 Node.js、Python、Ruby 和 PHP 這樣的語言。它抽象化了複雜的 DevOps 任務,使開發者可以輕鬆部署 Dockerized 應用程式。

我如何管理 IronSecureDoc 的文件安全性?

IronSecureDoc 透過提供強大的加密、高級 PDF 操作和數字簽名來提供強大的文件管理。這確保了文件的機密性和完整性,使其適合於各行業的合規性。

Coolify 可以與 Docker Compose 一起使用嗎?

是的,Coolify 利用 Docker 的容器化功能,使開發者可以輕鬆使用 Docker Compose 部署應用程式和管理資料庫。

Coolify 為開發者提供了哪些關鍵功能?

Coolify 提供了像 Git 整合、資源監控、SSL 和自訂域管理以及多雲支持等功能,這使其成為開發者和小型團隊的理想選擇。

Coolify 如何處理 SSL 證書和自訂域需求?

Coolify 自動配置使用 Let's Encrypt 的 SSL,輕鬆將應用程式映射到自訂域,確保安全和可靠的連接。

什麼使 Coolify 適合小型團隊?

Coolify 的使用者友好介面,結合其抽象化複雜的 DevOps 任務的能力,使小型團隊能夠有效地部署和管理應用程式和資料庫。

如何將 IronSecureDoc 整合到部署工作流程中?

IronSecureDoc 可以通過在 Coolify 上部署為一個 Docker 容器來整合到部署工作流程中,確保文檔管理和安全性在應用程式部署過程中得到無縫管理。

使用 Docker 配合 Coolify 有什麼好處?

當 Docker 與 Coolify 一起使用時,可減少基礎設施的複雜性,提高資源效率,加速開發生命週期,確保在各環境中的一致性部署。

Curtis Chau
技術作家

Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。

除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。