This repository provides a step-by-step guide for deploying the Bluesky Personal Data Server (PDS) on a Linux system.
It is similar to bluesky-social/pds, but it only uses Docker to run services, making the deployment process simpler and more straightforward compared to the installer.sh script in the original repository.
- A server (minimum 1 CPU core, 1 GB RAM) with a public IP address and firewall rules allowing traffic on ports 80 and 443
- OS (Ubuntu 20.04/22.04 or Debian 11/12 preferred)
- Docker
- Docker Compose
- A domain name
Create DNS records to point your domain name to your server's IP address.
| Type | Name | IP | TTL |
|---|---|---|---|
| A | bsky.example.com | 1.2.3.4 | 600 |
| A | *.bsky.example.com | 1.2.3.4 | 600 |
git clone https://github.com/aykhans/bsky-pds-easy.git && cd bsky-pds-easycp pds.env.example pds.envGenerate PDS_JWT_SECRET with OpenSSL:
sed -i "s/PDS_JWT_SECRET=/PDS_JWT_SECRET=$(openssl rand --hex 16)/" pds.envGenerate PDS_ADMIN_PASSWORD with OpenSSL:
sed -i "s/PDS_ADMIN_PASSWORD=/PDS_ADMIN_PASSWORD=$(openssl rand --hex 16)/" pds.envGenerate PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX with OpenSSL:
sed -i "s/PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX=/PDS_PLC_ROTATION_KEY_K256_PRIVATE_KEY_HEX=$(openssl ecparam --name secp256k1 --genkey --noout --outform DER | tail --bytes=+8 | head --bytes=32 | xxd --plain --cols 32)/" pds.envThen, manually fill in the following fields in your pds.env file:
PDS_HOSTNAME=bsky.example.com
PDS_EMAIL_SMTP_URL=smtps://username:[email protected]/
[email protected]docker compose up -dAfter successfully starting the services, you can create an account using bsky-pdsadmin-dockerized.
Example:
docker run -it --rm --env-file ./pds.env aykhans/bsky-pdsadmin account createYou can now visit https://bsky.app and log in using your custom PDS server (bsky.example.com) and your newly created credentials.