networks:
  1panel-network:
    external: true

services:
  wukongim:
    image: wukongim/wukongim:v1.2.6
    container_name: ${CONTAINER_NAME}
    labels:
      createdBy: "Apps"
    restart: always
    networks:
      - 1panel-network
    ports:
      - ${PANEL_APP_PORT_HTTP}:5300
      - ${PANEL_APP_PORT_WK_API}:5001
      - ${PANEL_APP_PORT_WK_TCP}:5100
      - ${PANEL_APP_PORT_WK_WS}:5200
      - ${PANEL_APP_PORT_WK_DEMO_SERVER}:5172
    env_file:
      - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
      - ${ENV_FILE:-/etc/1panel/envs/default.env}
    volumes:
      - ${WUKONGIM_ROOT_PATH}/wukongim:/root/wukongim
    environment:
      - WK_MODE=release
