𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶
DDokploy
Created by max.d on 11/23/2024 in #help
Zero downtime for NextJS
^ bump, having the same issue @Siumauricio, after deploying the load balancer makes it so some users are loading the backend from an older container, we have this Traefik config:
http:
middlewares:
# Rate-limit middleware
rate-limit:
rateLimit:
average: XX # Requests per second on average
burst: XX # Maximum requests allowed to burst
period: Xs # Time period for the average calculation
sourceCriterion:
ipStrategy:
depth: 0 # Use the client IP directly

# Large upload middleware
large-upload:
buffering:
maxRequestBodyBytes: XXXXXXXXXX # Size in bytes
memRequestBodyBytes: XXXXXXXXX # Threshold before using disk

routers:
[service-name]-router-XXXX:
rule: Host(`example.com`)
service: [service-name]-service-XXXX
middlewares:
- redirect-to-https
entryPoints:
- web

[service-name]-router-websecure-XXXX:
rule: Host(`example.com`)
service: [service-name]-service-XXXX
middlewares:
- rate-limit
- large-upload
entryPoints:
- websecure
tls:
certResolver: letsencrypt

services:
[service-name]-service-XXXX:
loadBalancer:
servers:
- url: http://[internal-service-name]:XXXX
passHostHeader: true
sticky:
cookie:
name: example_sticky
secure: true
httpOnly: true
sameSite: "lax"
http:
middlewares:
# Rate-limit middleware
rate-limit:
rateLimit:
average: XX # Requests per second on average
burst: XX # Maximum requests allowed to burst
period: Xs # Time period for the average calculation
sourceCriterion:
ipStrategy:
depth: 0 # Use the client IP directly

# Large upload middleware
large-upload:
buffering:
maxRequestBodyBytes: XXXXXXXXXX # Size in bytes
memRequestBodyBytes: XXXXXXXXX # Threshold before using disk

routers:
[service-name]-router-XXXX:
rule: Host(`example.com`)
service: [service-name]-service-XXXX
middlewares:
- redirect-to-https
entryPoints:
- web

[service-name]-router-websecure-XXXX:
rule: Host(`example.com`)
service: [service-name]-service-XXXX
middlewares:
- rate-limit
- large-upload
entryPoints:
- websecure
tls:
certResolver: letsencrypt

services:
[service-name]-service-XXXX:
loadBalancer:
servers:
- url: http://[internal-service-name]:XXXX
passHostHeader: true
sticky:
cookie:
name: example_sticky
secure: true
httpOnly: true
sameSite: "lax"
3 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 3/11/2025 in #help
On every deployment in Next.JS there's this error
nvm it's content drift
2 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 3/5/2025 in #help
Best way to organize environments?
bump
2 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 3/2/2025 in #help
10s downtime on each deploy to prod
do I still use http://localhost:3000? or the prod custom domain?
4 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
nixpack should support it I'd assume
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
yeah locally
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
yeah it is
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
No description
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
like if my repo is the only thing running on that server, you just do /
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
hmm so it's actually the base dir then?
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
@Siumauricio maybe the docs aren't clear, but you just specify your src directory right?
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
No description
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
but it's weird that it doesn't detect it's a Next.js project
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
No description
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
No description
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
No description
23 replies
DDokploy
Created by 𖤬𝔫𝔡𝔶 on 2/4/2025 in #help
Can't deploy from git branch (private organization and repo)
which screenshot would help troubleshoot?
23 replies