Sign inSign up

xinac721/favicon-api

By xinac721

•Updated 17 days ago

favicon-api-v4,favicon图标获取接口服务,效果:https://api.xinac.net/icon/

Image
0

2.1K

xinac721/favicon-api repository overview

  1. docker pull xinac721/favicon-api

  2. docker-compose

services:
  favicon-api:
    image: xinac721/favicon-api
    container_name: favicon-api-v4
    network_mode: bridge
    env_file:
      - path: .env
        required: false
    ports:
      - 8000:8000
    environment:
      TZ: ${TZ:-Asia/Shanghai}
    volumes:
      - ${FAVICON_RUNTIME_ROOT:-.}/data:/app/data:rw
      - ${FAVICON_RUNTIME_ROOT:-.}/logs:/app/logs:rw
    restart: unless-stopped
    security_opt:
      - no-new-privileges:true
    cap_drop:
      - ALL
    cap_add:
      - CHOWN
      - DAC_OVERRIDE
      - SETGID
      - SETUID
    tmpfs:
      - /tmp:size=64m,noexec,nosuid,noatime
    healthcheck:
      test: ["CMD", "gosu", "app", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/healthz', timeout=2)"]
      interval: 30s
      timeout: 3s
      retries: 3
      start_period: 10s
  1. 内置静态页面,内容是固定的,可映射后自定义: ./templates/index.html:/app/templates/index.html 或 ./templates:/app/templates

  2. Demo

Tag summary

Content type

Image

Digest

sha256:5e4268784…

Size

71.4 MB

Last updated

17 days ago

docker pull xinac721/favicon-api