English
VPS deployment
On a public VPS you can avoid binding HTTP on 0.0.0.0 at first: map the container to 127.0.0.1, finish /setup over an SSH tunnel from your computer, then switch to a normal -p mapping. Map the host port to in-container PORT (default 3080); see Environment variables.
Install Docker
SSH into the VPS and open a terminal:
bash
apt install -y curl && curl -sSL https://get.docker.com | sudo shBootstrap
On the VPS, generate KEYCHAIN_PASSPHRASE in the current shell:
bash
export KEYCHAIN_PASSPHRASE=$(openssl rand -base64 15 | tr -dc 'A-Za-z0-9' | head -c10)Start the container (-p uses 127.0.0.1:3080 on the left so the port is not reachable from the internet):
bash
docker run -d \
-p 127.0.0.1:3080:3080 \
-e KEYCHAIN_PASSPHRASE="$KEYCHAIN_PASSPHRASE" \
-e ADMIN_INIT_PIN=20251024 \
-e PORT=3080 \
-v ipa_data:/app/data \
--name ipa-harbor \
--restart unless-stopped \
uuphy/ipa-harbor:latestFor /setup, use init PIN 20251024 (same as Quick Start).
On your computer, open another terminal and run (replace VPS_IP and root):
bash
ssh -L 3000:127.0.0.1:3080 root@VPS_IPOpen http://localhost:3000. The first visit goes to /setup; enter init PIN 20251024. If local port 3000 is in use, use -L 3388:127.0.0.1:3080 and open http://localhost:3388.
First Apple ID sign-in
The first Apple ID sign-in runs Unicorn/SAP emulation. The host should have more than 1 GB of free RAM, or configure at least 2 GB of swap.
Normal port mapping
After /setup, on the VPS:
bash
docker stop ipa-harbor
docker rm ipa-harborIn the same SSH session, start again with a typical mapping, e.g. host 3388 (random ADMIN_INIT_PIN, as in Docker deployment):
bash
docker run -d \
-p 3388:3080 \
-e KEYCHAIN_PASSPHRASE="$KEYCHAIN_PASSPHRASE" \
-e ADMIN_INIT_PIN=$(openssl rand -base64 24 | tr -dc '0-9' | head -c8) \
-e PORT=3080 \
-v ipa_data:/app/data \
--name ipa-harbor \
--restart unless-stopped \
uuphy/ipa-harbor:latestSave the ADMIN_INIT_PIN from the command output. Use http://VPS_IP:3388; you can close the SSH tunnel. For public access and HTTPS see Docker deployment and Nginx reverse proxy.