Skip to content

iamtakagi-lab/images

Repository files navigation

images

A Image Contents Server that people watch on Browser feat uploader and url2image with supports PNG / JPEG / GIF / WebP / BMP / TIFF / SVG

Features

Supporting Media Formats

  • PNG
  • JPEG
  • GIF
  • WebP
  • BMP
  • TIFF
  • SVG

Upload Limit

See a .env and edit it.

Get Started

docker-compose up -d

docker-compose.yml (example)

version: '3.8'
services:
  app:
    container_name: images
    image: ghcr.io/iamtakagi/images:latest
    build: 
      context: .
      dockerfile: Dockerfile
    volumes:
      - ./storage:/app/storage
    env_file:
      - .env
    environment:
      - TZ=Asia/Tokyo
      - LANG=ja_JP.UTF-8
      - PORT=3000
    networks:
      - default
    ports:
      - 3000:3000
    restart: unless-stopped

.env

ADMIN_USER=hoge
ADMIN_PASS=foo
UPLOAD_LIMIT_MB=10
SITE_BASEURL=https://foo.com

Run Development Server

yarn dev

Bundle by Webpack

yarn build

Start as Production Mode

node app.js

LICENSE

MIT License.