version: '3' services: n8n: image: docker.n8n.io/n8nio/n8n:latest container_name: n8n ports: - "5678:5678" volumes: - n8n_data:/home/node/.n8n - ./data:/data - /etc/localtime:/etc/localtime:ro restart: unless-stopped env_file: - .env network_mode: "host" healthcheck: test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5678/healthz"] interval: 30s timeout: 10s retries: 3 start_period: 40s volumes: n8n_data: