Overview

Ruby on Rails Worker Service is the convention-driven Ruby framework for building database-backed web applications quickly. This profile runs Ruby on Rails as a background worker process rather than a web-facing service, which suits processing queues, scheduled tasks, and other asynchronous jobs. DockerCP provisions it from a clean Docker profile, handling persistent storage, environment configuration, domain mapping, and HTTPS certificates. Sensible defaults for ports, volumes, and environment variables take you from template to running service in a few clicks.

Docker image ruby:3.3
Default port 3000
Deployment type docker image
Recommended resources 1 CPU · 1 GB

How deployment works in DockerCP

This template gives DockerCP the deployment metadata needed to create a service, prepare runtime variables, map persistent storage, expose the internal port, and connect a public domain with SSL when required.

  1. Create or select a project where the service belongs.
  2. Review the Docker image, tag, default port, environment variables, and volume mappings.
  3. Deploy the service and check logs until the application is healthy.
  4. Attach a domain or subdomain when the application must be available publicly.
  5. Enable HTTPS and verify the final browser response.

Configuration

Environment variables

Variable Default / guidance
APP_ENV production
APP_PORT 3000

Persistent volumes

Volume Mount path
ruby_on_rails_worker_service_data /data

Commands

DockerCP handles deployment from the panel, but understanding the equivalent Docker commands helps users debug services with more confidence.

docker pull ruby:3.3
docker ps --filter "name=ruby-on-rails-worker-service"

docker logs --tail=100 ruby-on-rails-worker-service

DNS and SSL checklist

Step Expected result
Add A or CNAME record The domain points to the DockerCP server or configured target.
Attach domain to service The service is reachable through the selected hostname.
Enable HTTPS The certificate becomes active and redirect to HTTPS can be enabled.

Screenshots

Panel previews for the Ruby on Rails Worker Service template: how deployment, the running service, and its key details look inside DockerCP.

Ruby on Rails Worker Service deployment form inside the DockerCP panel.
Application runtime booting inside the container.
Runtime configuration injected by DockerCP.

Troubleshoot

  • Confirm the Docker image and tag exist.
  • Confirm the selected internal port matches the application port.
  • Confirm required variables such as database URL, app URL, and credentials are set.
  • Check service logs after the first deployment.
  • Verify DNS before requesting or renewing SSL certificates.