···11+# Dockerized AT Protocol Relay
22+33+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)
44+55+## Setup
66+77+clone this repo and change directory into it
88+99+```bash
1010+git clone git@tangled.sh:dane.is.extraordinarily.cool/relay-docker
1111+1212+cd relay-docker
1313+```
1414+1515+clone the indigo repo
1616+1717+```bash
1818+git clone git@github.com:bluesky-social/indigo.git
1919+```
2020+2121+rename the `.env.example` file to just `.env`
2222+2323+```bash
2424+mv .env.example .env
2525+```
2626+2727+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
2828+2929+```bash
3030+RELAY_LENIENT_SYNC_VALIDATION=true
3131+RELAY_REPLAY_WINDOW=24h
3232+RELAY_PERSIST_DIR=/data/relay/persist
3333+RELAY_ADMIN_PASSWORD=
3434+RELAY_TRUSTED_DOMAINS=
3535+RELAY_HOST_CONCURRENCY=4
3636+3737+# database env
3838+DATABASE_URL=
3939+POSTGRES_USER=
4040+POSTGRES_PASSWORD=
4141+POSTGRES_DB=
4242+```
4343+4444+start relay
4545+4646+```bash
4747+docker compose up -d
4848+```
4949+5050+verify that it is running
5151+5252+```bash
5353+curl localhost:2470
5454+```
5555+5656+## PDS Crawling
5757+5858+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
5959+6060+note: im still figuring this out so i may be missing a lot of stuff