공식사이트 : https://github.com/svrforum/FileHatch
<간편 설치>
mkdir -p filehatch && cd filehatch && \
curl -fsSL https://raw.githubusercontent.com/svrforum/FileHatch/main/.env.example -o .env && \
curl -fsSL https://raw.githubusercontent.com/svrforum/FileHatch/main/docker-compose.yml -o docker-compose.yml && \
mkdir -p config && touch config/smb.conf && \
sed -i "s/JWT_SECRET=.*/JWT_SECRET=$(openssl rand -hex 32)/" .env && \
sed -i "s/ENCRYPTION_KEY=.*/ENCRYPTION_KEY=$(openssl rand -hex 32)/" .env && \
sed -i "s/DB_PASS=.*/DB_PASS=$(openssl rand -base64 16 | tr -d '=+/')/" .env && \
docker compose up -d && \
echo "✅ FileHatch 설치 완료! http://localhost:3080 에서 접속하세요."
<단계별 설치>
# 1. 설치 디렉토리 생성
mkdir -p filehatch && cd filehatch
# 2. 설정 파일 다운로드
curl -fsSL https://raw.githubusercontent.com/svrforum/FileHatch/main/.env.example -o .env
curl -fsSL https://raw.githubusercontent.com/svrforum/FileHatch/main/docker-compose.yml -o docker-compose.yml
# 3. config 디렉토리 및 SMB 설정 파일 생성
mkdir -p config && touch config/smb.conf
# 4. 보안 키 자동 생성 (중요!)
sed -i "s/JWT_SECRET=.*/JWT_SECRET=$(openssl rand -hex 32)/" .env
sed -i "s/ENCRYPTION_KEY=.*/ENCRYPTION_KEY=$(openssl rand -hex 32)/" .env
sed -i "s/DB_PASS=.*/DB_PASS=$(openssl rand -base64 16 | tr -d '=+/')/" .env
# 5. 서비스 시작
docker compose up -d
# 6. 상태 확인
docker compose ps
# 7. 로그 확인
docker compose logs -f