services:
  zerotier-planet:
    container_name: ${CONTAINER_NAME}
    restart: always
    networks:
      - 1panel-network
    ports:
      - "${PANEL_APP_PORT_HTTP}:4000"
      - "${PANEL_APP_PORT_SERVER}:9993"
      - "${PANEL_APP_PORT_SERVER}:9993/udp"
      - "${PANEL_APP_PORT_DOWNLOAD}:3180"
    volumes:
      - ./data/zerotier-one:/var/lib/zerotier-one
      - ./data/etc:/opt/key-networks/ztncui/etc
    environment:
      - MYADDR=${HOST_IP_ADDR}
      - HTTP_PORT=4000
      - HTTP_ALL_INTERFACES=yes
      - ZTNCUI_PASSWD=${PASSWORD}
    image: keynetworks/ztncui:1.2.17
    labels:  
      createdBy: "Apps"

networks:  
  1panel-network:  
    external: true
