YOOYUN VPS vs authentik Specs & Asustor ImgCompress Deploy

Match YOOYUN HK/JP/US hourly VPS tiers to authentik's official 2C/2G Docker Compose baseline

Table of contents
  1. 1.Introduction & Key Points
  2. 2.Cross-Parameter Comparison
  3. 3.Deep Dive
  4. 3.1.YOOYUN Self-Hosted authentik: Tier Alignment & Ops Details
  5. 3.2.Asustor NAS ImgCompress v1.0.0 Full Walkthrough
  6. 4.Scenario-Based Selection & Pitfall Checklist
  7. 5.FAQ
  8. 6.Sources & References
YOOYUN VPS vs authentik Specs & Asustor ImgCompress Deploy

Introduction & Key Points

This edition covers two self-hosting scenarios: production-grade Docker Compose deployment of the identity gateway authentik, whose official docs mandate at least 2 CPU cores and 2 GB RAM on the host while enabling PostgreSQL 16 and allocating 512 MB shared memory each to server and worker; and one-click deployment of ImgCompress v1.0.0 on Asustor NAS via Dockhand for local batch compression, format conversion, and AI background removal. We align YOOYUN’s three regions (Hong Kong hk_pro/hk_bgp, Japan jp_pro, US us_pro) across four tiers against authentik’s baseline, yielding the verdict “Mini just meets spec, Nano CPU falls short, Air/Standard provide headroom,” and detail data-disk mounting, snapshot isolation, egress pricing (HK CN2 ¥0.05/GB, HK BGP ¥0.015/GB, JP ¥0.05/GB, US ¥0.025/GB), and Docker socket risks.

Cross-Parameter Comparison

Dimension YOOYUN Nano YOOYUN Mini YOOYUN Air YOOYUN Standard ImgCompress (Asustor NAS)
CPU / RAM 1 core / 2 GB 2 cores / 4 GB 4 cores / 8 GB 8 cores / 16 GB Host-defined (single Docker container)
System Disk 20 GB (fixed) 20 GB (fixed) 20 GB (fixed) 20 GB (fixed) NAS storage pool, user-planned
Monthly Est. (720h) ¥39.6 ¥79.2 ¥158.4 ¥316.8 Free open-source
Peak Bandwidth (HK/JP/US) 20/20/50 Mbps 30/30/50 Mbps 40/40/100 Mbps 50/50/100 Mbps LAN / public, user-defined
Egress Unit Price HK CN2 ¥0.05/GB
HK BGP ¥0.015/GB
JP ¥0.05/GB
US ¥0.025/GB
Same Same Same No extra traffic fee
authentik Compliant ❌ CPU short ✅ Meets 2C/2G baseline ✅ Headroom ✅ Headroom N/A
Key Risks / Undisclosed Data disk not in root snapshot, us_pro_special no backup, Docker socket mount risk Same Same Same First pull needs internet, Dockhand must be latest

Deep Dive

YOOYUN Self-Hosted authentik: Tier Alignment & Ops Details

The authentik official Docker Compose install page labels this deployment “testing and small-scale production” with a hard floor of at least 2 CPU cores and 2 GB of RAM. The compose.yml pulled that day starts three services: PostgreSQL 16 (alpine image, volume named database), server, and worker. server exposes 9000 (HTTP) and 9443 (HTTPS); both server and worker set shm_size: 512mb. worker runs as root and mounts the host /var/run/docker.sock to auto-manage Outposts; the docs flag this as a security risk and recommend a Socket Proxy or manual management instead. First deployment requires generating a PostgreSQL password and AUTHENTIK_SECRET_KEY into .env (PostgreSQL password ≤ 99 chars). Internal time uses UTC; mounting /etc/timezone or /etc/localtime inside containers can break OAuth/SAML. Email is optional but recommended. First visit to http://IP:9000 walks through setting a password for the default user akadmin.

YOOYUN’s API that day returned four tiers with identical hourly pricing across three regions; monthly at 720 hours: Nano 1C2G ¥39.6, Mini 2C4G ¥79.2, Air 4C8G ¥158.4, Standard 8C16G ¥316.8. Peak bandwidth scales with tier and region: Hong Kong/Japan 20→50 Mbps, US 50→100 Mbps. Against the official floor, Mini 2C4G just satisfies both CPU and RAM, while Nano hits the RAM line but only has 1 core, so it is non-compliant. If you also run a reverse proxy on the same box or follow the Kubernetes page suggestion to externalize the database, Air gives more breathing room. All tiers lock the system disk at 20 GB non-expandable; vertical scaling only supports CPU/RAM upgrades. The PostgreSQL volume and server/worker ./data directories in compose.yml should be moved to a separately purchased data disk; the help center states data disks are excluded from root-disk snapshots and must be snapshotted independently. Region guidance: mainland users running an admin panel prefer hk_pro (CN2+BGP); for overseas callbacks or cost-sensitive egress choose us_pro (¥0.025/GB); us_pro_special explicitly lacks backup capability — do not place core account stores there. Security: keep the Docker socket mount isolated from production sites, terminate TLS at a reverse proxy, and avoid long-term bare exposure of port 9000.

Asustor NAS ImgCompress v1.0.0 Full Walkthrough

ImgCompress is a single-container image karimz1/imgcompress:latest providing an open-source image toolbox: batch compression/conversion across 70+ formats (HEIC, PSD, RAW, SVG, AVIF, PDF), local AI background removal, up to 16K upscaling, and web-based crop/watermark editing — all offline, data never leaves the NAS. Prerequisite: Asustor NAS running the latest Dockhand (management port 3866). Steps: open http://NAS_IP:3866 → left sidebar Stacks → + Create → Stack name imgcompress (all lowercase) → paste the Compose below → Create & Start:

imgcompress:
 image: karimz1/imgcompress:latest
 container_name: imgcompress
 ports:
 - "8080:8080"
 volumes:
 - /volume1/docker/imgcompress:/data
 restart: unless-stopped

Port 8080 is adjustable; map the volume to a persistent directory on the NAS storage pool (example /volume1/docker/imgcompress). First image pull requires internet; thereafter fully offline. Author testing shows phone HEIC and large PSD to WebP with negligible quality loss, AI cutout practical for product shots, steady resource usage, and smooth web UI on phone and laptop. Source does not disclose container CPU/RAM limits, concrete throughput numbers, multi-arch image tags, or upgrade strategy; recommend adding cpus/mem_limit and watchtower auto-update per Dockhand prompts or upstream docs.

Scenario-Based Selection & Pitfall Checklist

  1. Personal / small-team SSO (authentik): Pick YOOYUN Mini 2C4G hk_pro at ¥79.2/mo — meets official baseline, low CN2+BGP latency; must attach a data disk for PostgreSQL volume and ./data, and snapshot the data disk separately.
  2. Co-locating Nginx/Traefik reverse proxy or external DB: Go straight to Air 4C8G — CPU/RAM headroom absorbs shm_size and connection-pool contention.
  3. Overseas callbacks, egress-cost-sensitive: Choose us_pro at ¥0.025/GB egress, entry tier already 50 Mbps peak; strictly forbid placing core account stores in us_pro_special (no backup).
  4. Asustor NAS batch image processing: Deploy ImgCompress via Dockhand, volume on non-system storage pool, port 8080 LAN-only or behind reverse proxy with TLS; ensure NAS online for initial image pull.
  5. Universal gotchas: ① All YOOYUN tiers: 20 GB system disk fixed — data disk not in root snapshot — remember dual-disk dual-backup. ② authentik default Compose mounts Docker socket — production must switch to Socket Proxy or drop the mount. ③ Never alter timezone files inside containers; keep UTC to prevent OAuth/SAML signature failures. ④ Before ImgCompress upgrade, snapshot the data volume in Dockhand; source provides no rolling-upgrade command.

FAQ

Does authentik’s official Compose requirement of 2 cores 2 GB refer to single-core performance or total core count?

The original text reads “at least 2 CPU cores and 2 GB of RAM,” meaning the host must simultaneously provide at least 2 logical cores and 2 GB physical RAM — not a single-core performance metric. YOOYUN Nano has 1 core so it fails despite meeting RAM; Mini 2C4G just passes.

Are YOOYUN data-disk snapshots automatically linked to root-disk snapshots?

No. The help center explicitly states data disks are not included in root-disk snapshots; you must snapshot the data disk separately. Reinstalling the OS wipes the root disk while leaving the attached data disk intact, but without a data-disk snapshot you cannot roll back volume contents.

Must ImgCompress on Asustor NAS use Dockhand? Can Portainer or CLI be used instead?

The source only demonstrates the Dockhand UI flow (Stacks → Create → paste Compose) and does not mention Portainer or docker compose up -d alternatives. As long as the NAS has Docker Engine, deployment should work in principle, but the source discloses no steps or compatibility verification for non-Dockhand paths.

Sources & References

Spotted outdated pricing, stock, or expired coupons?See methodology & report an update →

Related articles