OrbStack proxy error: tls: first record does not look like a TLS handshake
Describe the bug
I am using orbstack Version 1.9.5 (18849) on MacOS 15.3
I am trying to use domains and HTTPS with docker compose, but it seams not working, I also verified my mac have OrbStack Root Cert
502 Bad Gateway OrbStack proxy error: tls: first record does not look like a TLS handshake
To Reproduce
docker compose up with
services:
###########################################################################
# postgres database
###########################################################################
postgres:
image: postgres:17-alpine
hostname: postgres
container_name: postgres
restart: unless-stopped
ports:
- '5432:5432'
volumes:
- pg_data:/var/lib/postgresql/data
- ./infra/init-data.sh:/docker-entrypoint-initdb.d/init-data.sh:Z
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
- POSTGRES_DB
- POSTGRES_NON_ROOT_USER
- POSTGRES_NON_ROOT_PASSWORD
healthcheck:
test: ['CMD-SHELL', 'pg_isready -h localhost -U ${POSTGRES_USER} -d ${POSTGRES_DB}']
interval: 5s
timeout: 5s
retries: 10
###########################################################################
# n8n is an extendable workflow automation tool.
# documentation: https://n8n.io
###########################################################################
n8n:
image: docker.n8n.io/n8nio/n8n
container_name: n8n
restart: always
links:
- postgres
environment:
- DB_TYPE=postgresdb
- DB_POSTGRESDB_HOST=postgres
- DB_POSTGRESDB_PORT=5432
- DB_POSTGRESDB_DATABASE=${POSTGRES_DB}
- DB_POSTGRESDB_USER=${POSTGRES_NON_ROOT_USER}
- DB_POSTGRESDB_PASSWORD=${POSTGRES_NON_ROOT_PASSWORD}
- NODE_ENV=production
- N8N_PORT=443
- N8N_PROTOCOL=https
- N8N_HOST=n8n.${COMPOSE_PROJECT_NAME}.orb.local
- WEBHOOK_URL=https://n8n.${COMPOSE_PROJECT_NAME}.orb.local
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
volumes:
- n8n-data:/home/node/.n8n
depends_on:
postgres:
condition: service_healthy
###########################################################################
# volumes
###########################################################################
volumes:
pg_data: {}
n8n-data: {}
Expected behavior
I should able to access the app at https://n8n.agentic.orb.local/ but getting OrbStack proxy error error
Diagnostic report (REQUIRED)
OrbStack info: Version: 1.9.5 Commit: 8276a76896800e4a12df9d35065c7458488ac010 (v1.9.5)
System info: macOS: 15.3 (24D60) CPU: arm64, 10 cores CPU model: Apple M1 Max Model: MacBookPro18,2 Memory: 64 GiB
Full report: https://orbstack.dev/_admin/diag/orbstack-diagreport_2025-02-07T05-06-20.943622Z.zip
Screenshots and additional context (optional)
the issue seems to be
- n8n showing wrong Editor URL on startup log and
- chrome browser excessive DNS caching :(
I have to restart chrome to flesh cache)
https://github.com/n8n-io/n8n/issues/13115