You can use the provided docker-compose.yml to deploy an n8n instance that includes Chinese language support. This configuration works by mounting a pre-translated editor-ui-dist directory over the default n8n editor UI files and setting the default locale environment variable.
Key Configuration Details:
- Image: Uses
n8nio/n8n:{version}. Ensure you replace {version} with a valid n8n version tag. - Ports: Maps host port
15678 to container port 5678. - Environment Variables:
N8N_DEFAULT_LOCALE=zh-CN: Sets the default interface language to Chinese.N8N_SECURE_COOKIE=false: Disables secure cookies (useful for local testing).
- Volume Mapping: The local directory
./editor-ui-dist must contain the Chinese translation files and is mounted to /usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist inside the container to override the default UI.
version: '3.8'
services:
n8ntest:
image: n8nio/n8n:{version}
container_name: n8ntest
ports:
- "15678:5678"
environment:
- N8N_DEFAULT_LOCALE=zh-CN
- N8N_SECURE_COOKIE=false
volumes:
- ./editor-ui-dist:/usr/local/lib/node_modules/n8n/node_modules/n8n-editor-ui/dist
stdin_open: true
tty: true
restart: unless-stopped