this is all u need in the compose:

and in coolify env vars:
SERVICE_URL_N8N=https://n8n.example.com
SERVICE_FQDN_N8N=n8n.example.com
SERVICE_URL_N8N_5678=https://n8n.example.com:5678
SERVICE_FQDN_N8N_5678=n8n.example.com:5678
this is all u need in the compose:

and in coolify env vars:
SERVICE_URL_N8N=https://n8n.example.com
SERVICE_FQDN_N8N=n8n.example.com
SERVICE_URL_N8N_5678=https://n8n.example.com:5678
SERVICE_FQDN_N8N_5678=n8n.example.com:5678