Overview
Caddy Static Site Worker Service is a Caddy web server set up to serve static files with automatic HTTPS. This profile runs Caddy Static Site as a background worker process rather than a web-facing service, which suits processing queues, scheduled tasks, and other asynchronous jobs. DockerCP deploys it as a Docker container with persistent storage, default port mapping, domain routing, and SSL-ready configuration. Once it is running, you can attach domains, issue SSL certificates, inspect logs, and monitor resource usage directly from the panel.
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.
- Create or select a project where the service belongs.
- Review the Docker image, tag, default port, environment variables, and volume mappings.
- Deploy the service and check logs until the application is healthy.
- Attach a domain or subdomain when the application must be available publicly.
- Enable HTTPS and verify the final browser response.
Configuration
Environment variables
| Variable | Default / guidance |
|---|---|
APP_ENV |
production |
APP_PORT |
80 |
Persistent volumes
| Volume | Mount path |
|---|---|
| caddy_static_site_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 caddy:alpine
docker ps --filter "name=caddy-static-site-worker-service"
docker logs --tail=100 caddy-static-site-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 Caddy Static Site Worker Service template: how deployment, the running service, and its key details look inside DockerCP.
Offload queues and scheduled jobs to a dedicated Caddy Static Site worker, a Caddy web server set up to serve static files with automatic HTTPS.
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.