# Dockerized AT Protocol Relay Heavily ~~copy and pasted~~ influenced by [phil's relay configurations](https://gist.github.com/futurGH/2ee18d385eff3ba98f5b35b9dcac0aed#file-docker-compose-yaml-L1) and [futur.blue's whitewind blog post](https://whtwnd.com/futur.blue/3lkubavdilf2m) ## Setup clone this repo and change directory into it ```bash git clone git@tangled.sh:dane.is.extraordinarily.cool/relay-docker cd relay-docker ``` clone the indigo repo ```bash git clone git@github.com:bluesky-social/indigo.git ``` rename the `.env.example` file to just `.env` ```bash mv .env.example .env ``` add values for these env variables, see [configuration and operation](https://github.com/bluesky-social/indigo/blob/main/cmd/relay/README.md#configuration-and-operation) section in the indigo repo to understand what the values mean ```bash RELAY_LENIENT_SYNC_VALIDATION=true RELAY_REPLAY_WINDOW=24h RELAY_PERSIST_DIR=/data/relay/persist RELAY_ADMIN_PASSWORD= RELAY_TRUSTED_DOMAINS= RELAY_HOST_CONCURRENCY=4 # database env DATABASE_URL= POSTGRES_USER= POSTGRES_PASSWORD= POSTGRES_DB= ``` start relay ```bash docker compose up -d ``` verify that it is running ```bash curl localhost:2470 ``` ## PDS Crawling see [bootstrapping host list](https://github.com/bluesky-social/indigo/blob/main/cmd/relay/README.md#bootstrapping-host-list) and the [how to do it](https://whtwnd.com/futur.blue/3lkubavdilf2m) section in futur's blog post to see how to bootstrap your relay with pdses note: im still figuring this out so i may be missing a lot of stuff