networks:
  1panel-network:
    external: true

services:
  n8n:
    image: n8nio/n8n:2.10.1
    container_name: ${CONTAINER_NAME}
    labels:
      createdBy: "Apps"
    restart: always
    networks:
      - 1panel-network
    ports:
      - ${PANEL_APP_PORT_HTTP}:5678
    volumes:
      - ${N8N_ROOT_PATH}/data:/home/node/.n8n
    environment:
      - TZ=Asia/Shanghai
      - N8N_LISTEN_ADDRESS=0.0.0.0
      - N8N_PORT=5678
      - N8N_PROTOCOL=http
      - N8N_DIAGNOSTICS_ENABLED=false
      - N8N_SECURE_COOKIE=false
