I'm having an issue with container

I'm having an issue with container configuration where instance_type setting isn't working:
"containers": [
{
"class_name": "MyContainer",
"image": "./Dockerfile",
"max_instances": 5,
"instance_type": "basic",
"name": "n8n-container"
}
]
"containers": [
{
"class_name": "MyContainer",
"image": "./Dockerfile",
"max_instances": 5,
"instance_type": "basic",
"name": "n8n-container"
}
]
the "instance_type": "basic" configuration doesn't seem to take effect - the container still uses default settings. Does anyone know the correct way to configure this? Or is this field name even correct?
12 Replies
Mike Nomitch
Mike Nomitch•4mo ago
Are you on latest wrangler? I'm betting you'll have to upgrade
ldl
ldlOP•4mo ago
yes "wrangler": "^4.22.0"
Mike Nomitch
Mike Nomitch•4mo ago
Hrm Not part of the private beta right? Some older users have some setting we may not have switched over* (also n8n, cool use case) Most of team is in US, but I'll have @Nikita Sharma check this out when she's on
ldl
ldlOP•4mo ago
(base) āžœ containers-template pnpm run deploy

> containers@0.0.0 deploy /Users/ldl/Desktop/dexcex/containers-template
> wrangler deploy


ā›…ļø wrangler 4.22.0
(base) āžœ containers-template pnpm run deploy

> containers@0.0.0 deploy /Users/ldl/Desktop/dexcex/containers-template
> wrangler deploy


ā›…ļø wrangler 4.22.0
Mike Nomitch
Mike Nomitch•4mo ago
kk šŸ¤” Sorry yeah I'm about to hop on a plane and no clear reason I can see why it would fail TBH but @Nikita Sharma should be able to help as she wrote this code - but will prob be several hour delay at least
ldl
ldlOP•4mo ago
oh , I'm indeed building n8n "Does n8n still not support containers? It works perfectly with wrangler dev locally, but after successful deployment with wrangler deploy, I can't access it - getting 'Internal Server Error'. I think it might be a memory issue, but my "instance_type": "basic" setting isn't working "instance_type": "basic" worked, but my n8n container is still inaccessible. I don't know why. I can access n8n when running wrangler dev locally.
Mike Nomitch
Mike Nomitch•4mo ago
Nothing helpful in the logs?
ldl
ldlOP•4mo ago
Got it working! I changed N8N_EDITOR_BASE_URL to the worker's entry URL and now it works fine. Sorry for the trouble!
Nikita Sharma
Nikita Sharma•4mo ago
Awesome, glad to hear it started working! Lmk if the instance_type causes you any trouble again
Vivek
Vivek•4mo ago
Are you running n8n on Cloudflare Containers? I have been trying to do the same, but it doesn't seem to work.
ldl
ldlOP•4mo ago
I got it to work, but there were so many issues that I've given up on running n8n on cf for now.
Attila-IBS
Attila-IBS•3mo ago
I think CF should create a bunch of 1-click installer templates for such use cases like n8n...

Did you find this page helpful?