In this guide
Connect and configure applications
From repository to ready
Connect a trusted repository, resolve its setup requirements, and understand exactly what is saved before you deploy.
This guide follows the reviewed Den source. It describes supported controls and their limits, not a claim that your host has this version or that these operations have been rehearsed here. Check the installed build and current evidence before making changes.
Connect the right repository
Begin with a repository you trust and an installed Den whose access and recovery you have verified. Repository code can build and run containers on your host. Den's policy checks reduce the allowed surface; they do not make untrusted code safe.
- In Applications, open Connect a repository. Choose the intended environment and enter the display name, permanent slug, exact GitHub repository and existing branch. The slug identifies Den storage and the Compose project; do not use a disposable name for durable data.
- For a public repository, select Public HTTPS. Check access to the chosen branch and scan it. A repository homepage or successful browser sign-in does not prove the agent can fetch that branch.
- Review the scanned commit and Compose candidates. Den recognizes repository-relative compose and docker-compose YAML filenames and recommends root
compose.yamlwhen present. You still choose the deployment file; do not accidentally select a developer configuration with host mounts. - Choose Review deployment, inspect the preview, then Register and configure later. A registration can have incomplete setup. It does not start containers.
The scan checks out source into Den-owned storage. It does not run Compose or launch services. The deployment preview performs a separate analysis. If no suitable file exists, correct the repository contract instead of guessing a path or bypassing a policy finding.
Connect a private repository
Select Private SSH deploy key, then Generate deploy key. Add only the displayed public key to that repository's GitHub deploy-key settings, without write access. Return to Den and choose I've added the key - scan. Registration is not created until access succeeds and you confirm the Compose file.
The private key stays in the agent's protected volume. Den does not need a personal access token or write access. A sibling environment needs its own deploy key. If SSH host verification fails, verify GitHub's published fingerprints and the approved agent configuration with the host administrator; never disable strict verification.
After an interrupted wizard, inspect the registration list and GitHub's deploy keys before repeating setup. A GitHub key added outside Den can remain even if you cancel the wizard.
Read the deployment check
Open the app's Setup tab and select Check deployment. Review the commit, selected Compose file, check time and findings. The result describes that analyzed configuration, not everything currently running.
- Policy failures
- Unsafe bind mounts, privileged containers, forbidden resources, invalid manifests and similar hard errors block deployment. Repair the repository or use a specifically offered guarded conversion. There is no general bypass.
- Incomplete setup
- Required values and declared external prerequisites may be missing. Supply the correct inputs and check again. Only explicitly eligible soft findings can be acknowledged for one manual lifecycle attempt.
- Ready
- The analyzed contract passed the check. It does not establish that a new branch head, later configuration, external service or running container is healthy.
Preflight discovers Compose interpolation, service env_file references, template suggestions, resources and optional .den/deploy.yaml declarations. Several services sharing the same environment file share its configuration; inspect all consumers before changing a value.
Refresh evidence before changing services. Check deployment and Refresh comparison are read-only. Deploy latest version performs a fresh full preflight, even after a saved incompatible result. A failed check queues nothing; hard errors remain blocking and automatic GitHub deploys cannot override incomplete setup.
Review recommended setup
Apply recommended setup opens a review, not a promise to make every application work. Read each proposed change and select only what fits this deployment.
- Safe visible template suggestions can fill eligible values. Placeholders and ambiguous settings need your decision.
- Recognized random-secret fields can receive browser-generated values. Keep application-specific rotation and compatibility requirements in mind.
- Missing values may link to an explicitly configured same-name Shared value.
- Unlocked PostgreSQL dependencies can be provisioned in dedicated mode.
- Eligible storage conversions create empty Den-managed volumes.
- Optional Den-managed Seq is initially unchecked and can provision and start shared logging infrastructure.
Each change uses its guarded API and audit path. Treat a partial failure as partial completion: read the updated setup, identify what saved, correct the remaining input and refresh. Do not assume the review is one atomic deployment or rerun every change blindly.
Repository edits, external credentials and uncertain business settings remain manual. After applying recommendations, inspect every readiness category and deploy only after you understand the remaining findings.
Set application values safely
Use Configure variables to inspect required fields, formats, consuming services and declared ownership. Enter your application's real settings. A template example is guidance, not a production credential or automatically correct URL.
- Set manual values or import the intended environment file through the available control. The browser parses it locally and fills matching editable declared fields; unused, managed, binding and derived keys are ignored. Review the changes and choose Save. Import alone does not save them, and manifest-designated non-secret fields can be read back.
- For suitable random-secret fields, generate a new value in the browser. Do not rotate an existing encryption or signing key merely to clear a missing-value warning without understanding its data and session consequences.
- Use an explicit Shared value reference when the owner has configured the correct source, such as
${{shared.ATTIC_API_URL}}. References can also be embedded in a larger value. Unreferenced shared values are not injected into the app. - Leave dependency-managed and derived fields under their declared owner. Configure the dependency or binding rather than duplicating generated credentials manually.
- Save, check the remaining required fields and refresh deployment analysis. Saved changes are not necessarily applied to running services.
Saved secret fields and no-longer-referenced stored keys remain private. Secret fields are write-only: Den can report presence and a short fingerprint but does not reveal saved plaintext. Replace or clear deliberately. Clearing a protected environment file removes configuration, not container volumes, and can make the next deployment unready.
A shared-value change marks referencing applications for deployment. A staging reference resolves only staging values, never a production fallback. Review every affected consumer and apply the running changes deliberately.
Choose a PostgreSQL mode
Open the PostgreSQL dependency's Configure control. A manifest declares the connection variable and consumers; for a conventional PostgreSQL connection variable, Den can also infer eligible consumers from the selected Compose model. Confirm the dependency and services before provisioning.
- Dedicated
- A private PostgreSQL service and volume follow this app's lifecycle. This is the recommended default for an unlocked dependency.
- Shared
- An always-on Den cluster provides a separate least-privilege role and database for the deployment. Shared infrastructure does not mean shared application tables or credentials.
- External
- You supply the connection URL and operate the database. Den stores the setting but does not provision, probe or restore into the external database.
Managed provisioning verifies the database and binds its generated connection value. Credentials remain write-only, and the repository does not choose the PostgreSQL image. The host administrator controls the trusted image; production requires an approved immutable digest.
Replacing an existing database mode is not migration
Stop the application first, protect its data, then open Change and inspect the new mode. Replacing a locked mode requires acknowledging that Den will not migrate data from the current database. Retired Docker volumes are preserved, but the new connection is not a copy of the old data.
Plan export, compatibility, import and application verification separately. Do not switch modes on a running app or describe a successful mode change as a successful migration. For an external destination, use its own supported migration and recovery procedure.
Prepare storage and initial data
Production application data belongs in named volumes. If Den offers Use Den-managed storage for an eligible bind mount, review the exact analyzed commit, service, source and target. Approval records a deployment override; it does not edit the repository.
The new volume starts empty. Den does not copy or delete files from the original host path. Keep the original data safe and plan a deliberate initial import before deploying a workload that depends on it.
Initial import is available only to the independent owner on an enabled loopback local profile. LOCAL_DATA_IMPORTS=true alone is not enough: remote/public or Cloudflare profiles and Attic administrator sessions do not qualify.
- Stop the target application and confirm automatic deployment cannot race the import. Select the exact eligible target in Data import; the destination must be empty.
- Use a supported file archive (ZIP, tar.gz or tgz) for a declared file target, or a custom-format
pg_dump -Fcarchive for an eligible managed PostgreSQL target. Plain SQL and external-database restores are not supported. Policy-bound raw PostgreSQL import is blocked. Restore from a verified backup that satisfies the applicable policy instead; this control cannot adopt an arbitrary backup into the catalog. - Review the destination and selected data before choosing Upload and import (or Resume and import). This action uploads the file and, on completion, queues the import operation; there is no separate post-upload approval or application deployment. Chunks are verified and resumable; inactive uploads expire after 24 hours. Free-space reserve and archive safety limits still apply.
- Follow the queued import operation. The server rechecks stopped state and emptiness before applying the data. Successful file imports select a Den-owned candidate volume; failed or canceled candidates are removed without deleting successful volumes.
- Check the final import result, then deploy and verify application-level data. A valid archive is not proof the application understands its contents.
Archives containing path traversal, links, devices or other unsafe entries are rejected. Do not weaken extraction checks to force an import through. Initial import, backup restore and database-mode replacement are different tasks.
Set public and health endpoints
The Public URL is where a person opens the app. The Agent-reachable health URL is a probe from the agent container. They can be different and often should be.
Preflight derives loopback HTTP endpoints from effective port mappings and can map HTTP health checks to an agent-reachable address. Review drift before selecting Use detected endpoints. An intentional external reverse-proxy URL should not be replaced just because a local endpoint was detected.
- Use a distinct host port. Cached fleet checks can flag collisions, but stale or missing checks cannot prove a port is free.
- On Docker Desktop, a host-published health endpoint commonly uses
host.docker.internal, not the browser'slocalhost. Use the actual path and port your application supports. - Choose a realistic health timeout in the supported range shown by the UI. Increasing it does not repair wrong routing, missing data or an unhealthy dependency.
- Align the application's own public-origin, callback and proxy settings as well as Den's registration. Saving the registration does not rewrite application configuration.
Saving a URL does not publish DNS, establish a tunnel, reroute traffic or prove readiness. Verify container health and the configured agent probe after deployment, and test the public path separately.
Decide how logging is connected
When the application declares a Seq logging dependency, use its Logging settings to choose the supported shared, external or disabled mode. Keep logging optional unless the application's own contract requires otherwise.
Shared Seq has a private ingestion network and a separate administrator interface. External Seq belongs to its operator; configure the intended destination and per-application ingestion key. Saved keys are write-only and are not carried over to a different external destination.
For shared production Seq, the host administrator must configure an approved immutable SEQ_IMAGE digest. External and disabled logging do not need that managed image. Choose Save logging settings, then redeploy the consuming application to apply its new configuration.
The application owns event fields, log levels, sampling, buffering, redaction and delivery telemetry. Keep ingestion non-blocking and never emit secrets. A healthy Seq node proves the node is reachable, not that your application delivered an event. Verify a harmless application event independently. Application logs are also different from Den's operation and audit records.
Verify the handoff to deployment
Before the first lifecycle action
- Repository, branch, permanent slug, environment and selected Compose file are correct.
- A fresh check covers the intended revision and current saved values; hard failures are resolved.
- Required inputs, dependency ownership and shared references are understood.
- Storage is intentionally empty or initial data was imported and verified. Database replacement has not been mistaken for migration.
- Public and health URLs describe different audiences correctly; host ports and external resources do not collide.
- Automatic deployment is deliberately off or fully configured, and a protection plan exists for any valuable data.
Record what changed and what still needs deployment. Next, queue one deliberate lifecycle operation and verify its final result, running services and applicable health evidence. This documentation does not claim a sample repository or installation rehearsal has already passed those checks.