services:
  greatsql:
    image: greatsql/greatsql:8.0.32-27
    container_name: ${CONTAINER_NAME}
    hostname: ${CONTAINER_NAME}
    restart: unless-stopped
    networks:
      - 1panel-network
    ports:
      - ${PANEL_APP_PORT_HTTP}:3306
    environment:
      MYSQL_ROOT_PASSWORD: ${PANEL_DB_ROOT_PASSWORD}
      TZ: ${TIME_ZONE}
    volumes:
      - ./data/:/data/GreatSQL
      - ./conf/my.cnf:/etc/my.cnf
    labels:
      createdBy: "Apps"
networks:
  1panel-network:
    external: true
