Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

Suika/hydrus-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo should not be used, at least use the configuration from the main repo

Hydrus on docker

Docker Cloud Build Status Docker Cloud Automated build

Latest hydrus client that runs in docker 24/7. Employs xvfb and vnc. Runs on alpine.

Start container: docker run --name hydrusclient -d -p 5800:5800 -p 5900:5900 suika/hydrus:latest. Connect to noVNC via http://yourdockerhost:5800/vnc.html or use Tiger VNC Viewer or any other VNC client and connect on port 5900.

For persisten storage you can either create a named volume or mount a new/existing db path -v /hydrus/client/db:/opt/hydrus/db. The client runs with default permissions of 1000:1000, this can be changed by the ENV UID and GID(not working atm, fixed to 1000).

The container will NOT fix the permissions inside the db folder. CHOWN YOUR DB FOLDER CONTENT ON YOUR OWN

If you have enough RAM, mount /tmp as tmpfs. If not, download more RAM.

As of v359 hydrus understands IPFS nocopy. And can be easily run with go-ipfs container. Read Hydrus IPFS help. Mount HOST_PATH_DB/client_files to /data/client_files in ipfs. Go manage the ipfs service and set the path to /data/client_files, you'll know where to put it in.

OR, the compose file:

version: '2'
services:
  hydrusclient:
    image: suika/hydrus:latest
    container_name: hydrusclient
    restart: unless-stopped
    environment:
      - UID=1000
      - GID=1000
    volumes:
      - HOST_PATH_DB:/opt/hydrus/db
    tmpfs:
      - /tmp #optional for SPEEEEEEEEEEEEEEEEEEEEEEEEED and less disk access
    ports:
      - 5800:5800   #noVNC
      - 5900:5900   #VNC
      - 45868:45868 #Booru
      - 45869:45869 #API
  hydrusclient-ipfs:
    image: ipfs/go-ipfs
    container_name: hydrusclient-ipfs
    restart: unless-stopped
    volumes:
      - HOST_PATH_IPFS:/data/ipfs
      - HOST_PATH_DB/client_files:/data/client_files:ro
    ports:
      - 4001:4001 # READ
      - 5001:5001 # THE
      - 8080:8080 # IPFS
      - 8081:8081 # DOCS
  hydrus-web:
    image: suika/hydrus-web:latest
    container_name: hydrus-web
    restart: always
    ports:
      - 8080:80 # READ

also see Hyve for a feature rich image viewing experience.

Building

# Alpine (client)
cd client/
docker build -t suika/hydrus:latest .