That's a bit worrying, but also kind of impressive:

Got a Hetzner CAX31 today, asked #ClaudeCode to setup automated preview instances for every Pull Request created on a specific GitHub repo, asked claude code to connect via SSH and set it all up - and it basically works.

https://github.com/mandrasch/n8n-craftcms-demo

(For experimental usage only, proof of concept - some issues left to solve. For production, security check by devops humans needed. Obviously.)

#n8n #craftcms #php #devops #dockercompose

GitHub - mandrasch/n8n-craftcms-demo: Automatically spin up Craft CMS preview environments when a PR is opened. Triggered by GitHub webhooks, orchestrated by n8n, hosted on a single Hetzner server. Future goal: let an AI agent implement the PR spec before a human takes over.

Automatically spin up Craft CMS preview environments when a PR is opened. Triggered by GitHub webhooks, orchestrated by n8n, hosted on a single Hetzner server. Future goal: let an AI agent implemen...

GitHub

Настройка личных серверов через Docker Compose

В январе 2023 мне пришла в голову идея: а почему бы не управлять своими серверами так же, как я управляю своими проектами — через docker compose up . Довольно быстро стало понятно, что до меня в эту сторону массово не ходили, если кто так уже делает, то делает это молча… т.е. на все детские грабли на этом пути мне придётся наступить лично. А вот вам повезло: если тоже захотите пойти в эту сторону, то у вас уже есть и эта статья и пример конкретной реализации . Кому этот подход может подойти? Тут должны сойтись звёзды несколько факторов: ● Нужно быть программистом, хорошо знакомым с docker-compose.yml . ● Нужно иметь 1-5 личных серверов — не важно, дома или на обычном/облачном хостинге, настоящий ли это сервер или свой десктоп/ноут, выполняющий заодно и функции «сервера». ● Нужно иметь достаточно опыта настройки этих серверов вручную по ситуации , чтобы появилось понимание недостатков этого подхода и желание внедрить IaC (перенести конфигурацию серверов в git и сделать её легко воспроизводимой). ● Но главное — нужно не быть админом, которому Ansible привычнее. 😄

https://habr.com/ru/articles/1014472/

#docker_compose #dockercompose #deploy #server #servers #iac

Настройка личных серверов через Docker Compose

В январе 2023 мне пришла в голову идея: а почему бы не управлять своими серверами так же, как я управляю своими проектами — через docker compose up . Довольно быстро стало понятно, что до меня в эту...

Хабр
Con Immich parado, editas la información de la aplicación, cambias la versión de PostgreSQL a la 18, botón de actualizar y arrancas Immich. Se actualizará a PostgreSQL v18 y una vez arrancado y que veas que funciona, vuelves a editar el fichero ix_values.yaml dejándolo como estaba. A partir de ahí ya se puede actualizar el aplicativo de TrueNAS.
El que avisa no es traidor, es avisador.
#SustoOMuerte #Docker #DockerCompose #SelfHosting #SelfHost (2/2)

24 контейнера на VPS за $30/мес: как я заменил облака одним сервером

24 контейнера на одном VPS за $30/мес: Elasticsearch, Redis, MySQL, nginx, headless Chrome, llama.cpp и еще 18 сервисов. Реальные docker-compose файлы, конфиги nginx, потребление RAM каждого контейнера и честный список того, что не работает. Сравнение стоимости с managed-сервисами в облаке.

https://habr.com/ru/articles/1013482/

#docker #dockercompose #vps #selfhosted #nginx #elasticsearch #devops

24 контейнера на VPS за $30/мес: как я заменил облака одним сервером

24 контейнера, 6 ГБ RAM, $30/мес. И все работает. Ну почти Стек Компонент Версия Сервер VPS 2 vCPU, 6 ГБ RAM, 29 ГБ SSD, Ubuntu 22.04 Оркестрация Docker Compose v2 Reverse proxy nginx:alpine Базы...

Хабр

Lucee in a Box: The Ultimate Guide to Containerized Dev Servers

2,726 words, 14 minutes read time.

The Modern ColdFusion Workspace: Transitioning to Lucee in a Box

The shift from traditional, monolithic server installations to containerized environments has fundamentally altered how we perceive modern development within the Lucee ecosystem. For years, the standard approach involved installing a heavy application server directly onto a local machine, often leading to a “polluted” operating system where various versions of Java and Lucee competed for resources and environment variables. By adopting a “Lucee in a Box” methodology, we decouple the application logic from the underlying hardware, allowing for a portable, reproducible, and lightweight development stack. This transition is not merely about convenience; it is a strategic move toward parity with production environments where high availability and rapid scaling are the norms. In this architecture, we utilize Docker to encapsulate the Lucee engine, the web server, and the necessary configuration files into a single unit that can be spun up or destroyed in seconds, ensuring that every member of a development team is working within an identical, script-driven environment.

However, the true complexity of this setup emerges when we move beyond simple “Hello World” examples and begin integrating with the existing corporate infrastructure. In my own workflow, I rely heavily on a network of internal web services that act as the primary conduit for data residing in our production databases. These services are vital because they provide a sanitized, governed layer of abstraction over raw SQL queries, ensuring that sensitive data is handled according to internal compliance standards. When we containerize Lucee, we aren’t just running a script; we are placing a small, isolated node into a complex network. The challenge then becomes ensuring this isolated container can “see” and communicate with those internal services as if it were a native part of the network, all while maintaining the security boundaries that containerization is designed to provide.

The Data Silo Crisis: Overcoming Networked Service Isolation

One of the most significant hurdles in modernizing a CFML stack is the inherent isolation of the Docker bridge network, which often creates what I call a “Data Silo” during local development. When a developer attempts to call an internal web service—perhaps a REST API that fetches real-time production metrics or user permissions—from within a container, the request often hits a wall because the container’s internal DNS does not naturally resolve local intranet addresses. This creates a frustrating disconnect where the application works perfectly in the legacy local install but fails within the containerized environment. This disconnect is more than a minor annoyance; it leads to significant delays in the development lifecycle as engineers struggle to pipe in the data necessary for testing complex business logic. Without a seamless connection to these internal services, the “Lucee in a Box” becomes an empty vessel, incapable of performing the data-intensive tasks required in a modern enterprise setting.

To resolve this, we must look at how the container perceives the outside world and how the host machine facilitates that visibility. In many corporate environments, production data is guarded behind strict firewall rules and SSL requirements that expect requests to originate from known entities. When I utilize internal web services to provide data from a production database, the Lucee container must be configured to pass through the host’s network or be explicitly granted access to the internal DNS suffixes. Failure to address this at the architectural level results in “unreachable host” errors or SSL handshake failures that can derail a project for days. By understanding that the container is a guest on your network, we can begin to implement the routing and trust certificates necessary to turn that siloed container into a fully integrated node capable of consuming live data streams securely and efficiently through modern CFScript syntax.

The Blueprint: Implementing Lucee and MariaDB via Docker Compose

To move from theory to implementation, we must define the orchestration layer that brings our environment to life. The docker-compose.yml file is the definitive source of truth for the development stack, eliminating the “it works on my machine” excuse by codifying the server version, database configuration, and network paths. In the professional workflow I advocate, this file sits at the root of your project. It defines a lucee service using the official Lucee image—optimized for performance—and a mariadb service to handle local data persistence. Crucially, we use volumes to map your local www folder directly into the container’s web root. This means that as you write your CFScript in your preferred IDE on your host machine, the changes are reflected instantly inside the container without requiring a rebuild or a manual file transfer.

The following configuration provides a professional-grade starting point. It establishes a dedicated network for our services and ensures that Lucee has the environment variables necessary to eventually automate its datasource connections. By mounting the ./www directory, we ensure our code remains on our host machine where it can be version-controlled, while the ./db_data volume ensures our MariaDB data persists even if the container is destroyed and recreated.

version: '3.8' services: # The Database Engine mariadb: image: mariadb:10.6 container_name: lucee_db restart: always environment: MYSQL_ROOT_PASSWORD: root_password MYSQL_DATABASE: dev_db MYSQL_USER: dev_user MYSQL_PASSWORD: dev_password volumes: - ./db_data:/var/lib/mysql networks: - dev_network # The Lucee Application Server lucee: image: lucee/lucee:5.3 container_name: lucee_app restart: always ports: - "8080:8888" environment: # Injecting DB credentials for CFConfig or Application.cfc - DB_HOST=mariadb - DB_NAME=dev_db - DB_USER=dev_user - DB_PASSWORD=dev_password - LUCEE_ADMIN_PASSWORD=server_admin_pass volumes: - ./www:/var/www - ./config:/opt/lucee/web depends_on: - mariadb networks: - dev_network networks: dev_network: driver: bridge

Deployment Strategy: Running Your New Containerized Stack

Once the docker-compose.yml file is in place, initializing the environment is a matter of a single terminal command. By executing docker-compose up -d from the root of your project directory, the Docker engine pulls the specified images, creates the isolated virtual network, and establishes the volume mounts. This process ensures that your MariaDB instance is ready to receive connections before the Lucee server fully initializes. For developers who rely on internal web services, this is where the containerized approach proves its worth. Because Lucee is running in an isolated network but can be configured to have access to the host’s bridge or external DNS, it can safely consume external APIs while maintaining a clean, local database for session state or cached production data. This setup provides the exact same architectural “feel” as a high-traffic production cluster, but contained entirely within your local hardware.

The beauty of this system lies in its maintenance-free nature and the elimination of the “dependency hell” that often plagues legacy ColdFusion developers. If you need to test your CFScript against a different version of Lucee or a newer patch of MariaDB, you simply update the version tag in the YAML file and run the command again. There is no need to uninstall software, clear registry keys, or worry about Java version conflicts on your host machine. This modularity is why I utilize internal web services to provide data from production into this local box; the container acts as a secure, high-speed proxy. You can pull the data you need via an internal API call, store it in the MariaDB container, and work in an isolated state without ever risking the integrity of the actual production database.

Root Cause: Why Standard Containers Fail at Internal Service Integration

The primary reason most off-the-shelf Lucee container configurations fail when attempting to consume internal web services is a fundamental lack of trust—specifically, the absence of internal SSL certificates within the Java KeyStore. When I use web services hosted within my network to provide data from a production database, those services are almost always secured via an internal Certificate Authority (CA) that is not recognized by the default OpenJDK installation inside the Lucee container. This results in the dreaded “PKIX path building failed” error the moment a cfhttp call is initiated via CFScript to an internal endpoint. To solve this, the Dockerfile must be modified to perform a “copy and import” operation during the image build phase, where the internal CA certificate is added to the Java security folder and registered using the keytool utility. This ensures that the underlying Java Virtual Machine (JVM) trusts the internal network’s identity, allowing for encrypted, secure data transmission from the production-proxy services to the local development environment.

Beyond the cryptographic hurdles, there is the issue of routing and “Host-to-Container” communication that often stymies developers new to the Docker ecosystem. In a standard Docker setup, the container is wrapped in a layer of Network Address Translation (NAT) that makes it difficult to reach services sitting on the developer’s physical host or the wider corporate VPN. To bridge this gap, we often utilize the extra_hosts parameter within our docker-compose configuration, which effectively injects entries into the container’s /etc/hosts file. This allows us to map a friendly internal domain name, like services.internal.corp, directly to the IP address of the host machine or the VPN gateway. By explicitly defining these routes, we bypass the limitations of Docker’s isolated bridge and enable the Lucee engine to reach out to the web services that house our production data. This architectural “handshake” between the containerized Lucee instance and the physical network is the secret sauce that transforms a basic dev box into a high-fidelity replica of the production ecosystem.

Deep Dive: Consuming Internal Web Services via CFScript

With the network and security infrastructure in place, we can finally focus on the implementation layer: the CFScript that handles the data exchange. In a modern Lucee in a Box setup, I favor a service-oriented architecture where a dedicated DataService.cfc handles all interactions with the internal network. Using the http service in CFScript, we can construct requests that include the necessary authentication headers, such as JWT tokens or API keys, required by the internal production data services. The beauty of this approach is that the CFScript remains agnostic of the container’s physical location; as long as the Docker networking layer is correctly mapping the service URL to the internal network, the cfhttp call proceeds as if it were running on a native server. This allows us to maintain a clean, readable codebase that utilizes the latest CFScript features, such as cfhttp(url=targetURL, method="GET", result="local.apiResponse"), while the heavy lifting of network routing is handled by the Docker daemon.

The real power of this integration is realized when we use these internal web services to populate our local MariaDB instance with a “snapshot” of production-like data. Rather than dealing with massive, cumbersome database dumps that can compromise data privacy, we can write an initialization script in CFScript that queries the internal web services for the specific datasets required for a given task. This script can then parse the returned JSON and perform a series of queryExecute() commands to populate the local MariaDB container. This “just-in-time” data strategy ensures that the developer is always working with relevant, fresh data without the security risks associated with a direct connection to the production database. By leveraging the containerized Lucee instance as a smart bridge between internal network services and local storage, we create a development environment that is not only isolated and secure but also incredibly data-rich and performant.

Environment Variable Injection: The CFConfig and CommandBox Synergy

To achieve a truly “hands-off” configuration within a Lucee in a Box environment, we must move away from the manual web-based administrator and toward a purely scripted setup. This is where the combination of CommandBox and the CFConfig module becomes indispensable. By using a .cfconfig.json file or environment variables prefixed with LUCEE_, we can define our MariaDB datasource connections, internal web service endpoints, and mail server settings without ever clicking a button in the Lucee UI. In a professional workflow, this means the docker-compose.yml file serves as the master controller, injecting credentials and network paths directly into the Lucee engine at runtime. For instance, by setting LUCEE_DATASOURCE_MYDB as an environment variable, the containerized engine automatically constructs the connection to the MariaDB container, ensuring that our CFScript-based queryExecute() calls have a reliable target the moment the server is healthy.

This approach is particularly powerful when dealing with the internal web services that provide our production data. Since these services often require specific API keys or internal proxy settings, we can store these sensitive values in an .env file that is excluded from our Git repository. When the container starts, these values are mapped into the Lucee process, allowing our CFScript logic to access them via system.getEnv(). This ensures that our local development environment remains a mirror of our production logic while maintaining a strict separation of concerns between the application code and the infrastructure-specific secrets. By automating the configuration layer, we eliminate the risk of manual setup errors and ensure that every developer on the team can spin up a fully functional, networked-aware Lucee instance in a single command.

Advanced Networking: Bridged Access to Production-Proxy Services

The final piece of the Lucee in a Box puzzle involves fine-tuning the Docker network to handle the high-latency or high-security requirements of internal web services. When our CFScript makes a request to a service that pulls from a production database, we are often traversing multiple layers of internal routing, including VPNs and load balancers. To optimize this, we can configure our Docker bridge network to use specific MTU (Maximum Transmission Unit) settings that match our corporate network’s infrastructure, preventing packet fragmentation that can lead to mysterious request timeouts. Furthermore, by utilizing Docker’s aliases within the network configuration, we can simulate the production URL structure locally. This means our CFScript can call https://api.internal.production/ both in the dev container and the live environment, with Docker handling the redirection to the appropriate internal service endpoint based on the environment context.

Beyond simple connectivity, we must also consider the performance of these data-heavy web service calls. In a containerized environment, I often implement a caching layer within Lucee that stores the JSON payloads returned from our internal services into the local MariaDB instance or a RAM-based cache. By using CFScript’s cachePut() and cacheGet() functions, we can significantly reduce the load on our internal network and the production database proxy. This “lazy-loading” strategy allows us to develop complex features with the speed of local data access while still maintaining the accuracy of production-sourced information. This architectural decision—balancing live service integration with local persistence—represents the pinnacle of the Lucee in a Box philosophy, providing a development experience that is as fast as it is faithful to the real-world environment.

Conclusion: The Future of Scalable CFML Development

Adopting a “Lucee in a Box” strategy is more than just a trend in containerization; it is a fundamental shift toward professional-grade, reproducible engineering. By strictly defining our environment through docker-compose.yml, automating our security through SSL injection in the Dockerfile, and utilizing CFScript to bridge the gap between internal web services and local MariaDB storage, we create a stack that is resilient to “configuration drift.” This setup allows us to treat our development servers as ephemeral, disposable assets that can be rebuilt at a moment’s notice to match evolving production requirements. As the Lucee ecosystem continues to mature, the ability to orchestrate these complex data flows within a containerized boundary will remain the hallmark of a high-performing development team, ensuring that we spend less time debugging infrastructure and more time writing the logic that drives our applications forward.

Call to Action


If this post sparked your creativity, don’t just scroll past. Join the community of makers and tinkerers—people turning ideas into reality with 3D printing. Subscribe for more 3D printing guides and projects, drop a comment sharing what you’re printing, or reach out and tell me about your latest project. Let’s build together.

D. Bryan King

Sources

Disclaimer:

The views and opinions expressed in this post are solely those of the author. The information provided is based on personal research, experience, and understanding of the subject matter at the time of writing. Readers should consult relevant experts or authorities for specific guidance related to their unique situations.

#APIAuthentication #Automation #backendDevelopment #BridgeNetwork #cacerts #CFConfig #CFML #cfScript #CICD #CloudNative #Coldfusion #CommandBox #ConfigurationDrift #containerization #DataIntegration #DatabaseMigration #DatabaseProxy #DeepDive #deployment #devops #Docker #DockerCompose #EnterpriseDevelopment #environmentVariables #InfrastructureAsCode #InternalAPIs #ITInfrastructure #JavaKeyStore #JSON #JVM #JWT #localDevelopment #Lucee #LuceeInABox #MariaDB #microservices #Networking #OpenJDK #OrtusSolutions #Persistence #PortForwarding #Portability #ProductionData #ReproducibleEnvironments #RESTAPI #scalability #Scripting #SDLC #SecureDevelopment #softwareArchitecture #SQL #SSLCertificates #TechnicalGuide #Volumes #WebApplication #WebServer #WebServices #WorkflowOptimization
@coresec also ich mach gerade erste Gehversuche mit dockhand https://dockhand.pro/ #docker #dockercompose
Dockhand - Modern Docker Management

A powerful, intuitive Docker platform for everyone. Real-time container management, Compose stacks, Git deployments, and SSO - all free.

Dockhand

RE: https://mstdn.feddit.social/@admin/116260767442683998

搭建了 #Nostr #Blossom 服务器,提供了 #dockercompose 部署方式和 #S3 ,非常方便非常感谢:https://github.com/hzrd149/blossom-server

Jumble配置Blossom服务器的方式在:设置-发布设置-媒体上传发布-Blossom:
https://nstr.cc/settings/posts
设置了白名单规则,白名单用户图片、视频过期时间1年、1年,非白名单用户图片视频过期时间1月、1周,其他文件均1周

rules:
- type: "image/*"
expiration: "1 year"
pubkeys:
- "05bd073f5e2bdad5523f55bf1d8a79885d3aaa35c06f01509d8e9ebcf5bfd253"
- type: "video/*"
expiration: "1 year"
pubkeys:
- "05bd073f5e2bdad5523f55bf1d8a79885d3aaa35c06f01509d8e9ebcf5bfd253"
- type: "image/*"
expiration: "1 month"
- type: "video/*"
expiration: "1 week"
- type: "*"
expiration: "1 week"

Как развернуть кластер среды общих данных Pilot: от теории к практике с Docker Swarm

Привет, друзья! Сегодня поговорим о кластерном режиме в Pilot – линейке продуктов, на базе которых организуют совместную работу над строительными проектами, сборку и проверку BIM-моделей. Кластерный режим Pilot обеспечивает отказоустойчивость и горизонтальное масштабирование её центрального компонента — Pilot-Server. Для хранения данных в кластере используется PostgreSQL, а для взаимодействия между узлами — Redis. Примечание: На данный момент кластеризация доступна только для Pilot-Server. Pilot-BIM-Server и Pilot-Web-Server работают как отдельные сервисы без возможности горизонтального масштабирования. Какие преимущества мы получаем по сравнению с подходом, где используется один компонент Pilot-Server? 1. Аппаратный сбой на сервере Pilot-Server. При падении машины, на которой расположен единственный экземпляр Pilot-Server, работа пользователей парализуется, никакие действия с системой в режиме онлайн невозможно совершить. При нескольких компонентах на разных серверах, в случае падения одного из них, мгновенно назначается новый активный узел из оставшихся рабочих. Для пользователей это будет кратковременный разрыв соединения, после которого они переподключатся к новому узлу. 2. Обновление ПО. При обновлении Pilot-Server с единственным экземпляром, пользователи не могут подключаться в этот момент. В кластерном режиме обновление можно произвести в режиме “Последовательного обновления”. 3. Рост нагрузки на Pilot-Server. Большое количество запросов к одному компоненту Pilot-Server может превысить пропускную способность одного сервера. В кластерном режиме за счёт нескольких узлов с Pilot-Server нагрузка будет распределяться между ними через балансировщик.

https://habr.com/ru/companies/ascon/articles/1011322/

#pilotbim #pilotice #pilotweb #кластеризация #postgresql #docker #dockerswarm #dockercompose

Как развернуть кластер среды общих данных Pilot: от теории к практике с Docker Swarm

Привет, друзья! Сегодня поговорим о кластерном режиме в Pilot – линейке продуктов, на базе которых организуют совместную работу над строительными проектами, сборку и проверку BIM-моделей. Кластерный...

Хабр

Episode 7 of the DevOps Tools Engineer 2.0 Introduction series dives into exam objective #ContainerOrchestration.

Learn how #DockerCompose & #PodmanCompose define and run multi-container applications for modern #DevOps workflows: https://lpi.org/gfrl

#DevOps #containerorchestration #dockercompose #podmancompose #microservices #services #networks

Episode 23 of our technology podcast @RuntimeArguments (http://RuntimeArguments.fm). This episode is called "Containers - What's in the box????".

Jim @jammcq has been doing a lot of Docker work, and along with some research to fill out his knowledge, he and Wolf @YesJustWolf dig into that work: the why, the how, and what it all could do for you.

As always, we want to know what you think:

[email protected]

https://www.buzzsprout.com/2469780/episodes/18778761-23-containers-what-s-in-the-box

#Technology #Podcast #Containers #Docker #DockerCompose #Linux #Windows #macOS #Cloud