Skip to content

Commit

Permalink
Run jetstream in local infra
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-sherman committed Nov 20, 2024
1 parent fca6d1f commit 4492471
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
20 changes: 20 additions & 0 deletions packages/frontpage/local-infra/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,23 @@ turso.dev.unravel.fyi {

reverse_proxy http://pds:3000
}

jetstream.dev.unravel.fyi {
tls {
issuer internal {
ca unravel
}
}

reverse_proxy http://jetstream:6008
}

jetstream-metrics.dev.unravel.fyi {
tls {
issuer internal {
ca unravel
}
}

reverse_proxy http://jetstream:6009
}
17 changes: 16 additions & 1 deletion packages/frontpage/local-infra/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ services:
environment:
FRONTPAGE_CONSUMER_URL: http://host.docker.internal:3000/api/receive_hook
FRONTPAGE_CONSUMER_SECRET: secret
RELAY_URL: ws://pds:3000
JETSTREAM_URL: ws://jetstream:6008/subscribe
STORE_LOCATION: /drainpipedata
RUST_LOG: info
volumes:
- drainpipe:/drainpipedata
extra_hosts:
Expand All @@ -87,10 +89,23 @@ services:
extra_hosts:
- "host.docker.internal:host-gateway"

jetstream:
container_name: jetstream
image: ghcr.io/bluesky-social/jetstream:sha-2aacb58
restart: unless-stopped
volumes:
- jetstream:/data
environment:
- JETSTREAM_DATA_DIR=/data
# livness check interval to restart when no events are received (default: 15sec)
- JETSTREAM_LIVENESS_TTL=300s
- JETSTREAM_WS_URL=ws://pds:3000/xrpc/com.atproto.sync.subscribeRepos

volumes:
caddy_data:
caddy_config:
turso:
pds:
plc:
drainpipe:
jetstream:

0 comments on commit 4492471

Please sign in to comment.