networks:
  1panel-network:
    external: true

services:
  halo:
    image: halohub/halo:2.22.14
    container_name: ${CONTAINER_NAME}
    labels:
      createdBy: "Apps"
    restart: always
    networks:
      - 1panel-network
    ports:
      - ${PANEL_APP_PORT_HTTP}:8090
    volumes:
      - ${HALO_ROOT_PATH}/data:/root/.halo2
    environment:
      - JVM_OPTS=-Xmx256m -Xms256m
    command:
      - --spring.sql.init.platform=h2
      - --halo.external-url=${HALO_EXTERNAL_URL}
