Sign inSign up

moozhou/hanlp

By moozhou

•Updated about 5 years ago

HanLP docker image

Image
0

74

moozhou/hanlp repository overview

⁠Environment:
  • HANLP_PROPERTIES_PATH: hanlp.properties的路径
  • JAVA_OPTS: jvm启动时的配置
  • SERVER_PORT: 服务器端口
⁠docker compose
version: '2.4'
services:
    hanlp:
        image: moozhou/hanlp:1.0
        container_name: hanlp
        restart: always
        mem_limit: 4g
        environment:
            HANLP_PROPERTIES_PATH: /app/www/hanlp.properties
            JAVA_OPTS: "-Xmx4g -Xms3g"
        volumes:
            - ./hanlp.properties:/app/www/hanlp.properties:ro
            - ./data:/app/www/hanlp/data
        ports:
            - 8080:8080
        logging:
            options:
                max-size: "1m"
                max-file: "2"

Tag summary

Content type

Image

Digest

Size

260.7 MB

Last updated

about 5 years ago

docker pull moozhou/hanlp:1.0