fix: update the docker config

This commit is contained in:
2026-07-14 17:13:38 +07:00
parent 76a82bcfc9
commit 8533feab37
2 changed files with 12 additions and 0 deletions
+7
View File
@@ -8,6 +8,13 @@ services:
dockerfile: Dockerfile
image: 9router-app:${IMAGE_TAG:-latest}
restart: unless-stopped
# Dokploy honors Compose deploy resource limits for this application
# container. Values are per service instance.
deploy:
resources:
limits:
cpus: "0.5"
memory: 2G
# Dokploy/Traefik should route to this internal port. Do not publish it
# with `ports:`; public HTTP(S) is provided by the Dokploy domain router.
expose:
+5
View File
@@ -32,6 +32,11 @@ first successful deployment**, or Dokploy will mount a new, empty volume.
The Compose file contains a `build` section, so every deploy builds the image
from the exact checked-out commit rather than pulling a published image.
The `9router` service is also limited to **0.5 CPU** and **2 GB RAM** through
the Compose `deploy.resources.limits` configuration. The limit is per
`9router` container instance; the optional `headroom` sidecar has independent
resource usage.
## 2. Configure environment variables
In the Dokploy application's **Environment** settings, add the following