File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11REPLICA_URL = <REPLICA_URL>
2+ REPLICA_BUCKET_NAME = <REPLICA_BUCKET_NAME>
23LITESTREAM_ACCESS_KEY_ID = <LITESTREAM_ACCESS_KEY_ID>
34LITESTREAM_SECRET_ACCESS_KEY = <LITESTREAM_SECRET_ACCESS_KEY>
Original file line number Diff line number Diff line change @@ -27,17 +27,19 @@ source .env
2727OR export individual variables:
2828
2929``` bash
30- export REPLICA_URL=https://< account_id> .r2.cloudflarestorage.com
30+ export REPLICA_URL=https://< bucket_id> .r2.cloudflarestorage.com
31+ export REPLICA_BUCKET_NAME=bucket_name
3132export LITESTREAM_ACCESS_KEY_ID=access_key_id
3233export LITESTREAM_SECRET_ACCESS_KEY=secret_access_key
3334```
3435
35363 . Run the Docker image
3637
3738``` bash
38- docker run \
39+ docker run \
3940 -p 4321:4321 \
4041 -e REPLICA_URL \
42+ -e REPLICA_BUCKET_NAME \
4143 -e LITESTREAM_ACCESS_KEY_ID \
4244 -e LITESTREAM_SECRET_ACCESS_KEY \
4345 -v $( pwd) /data:/data \
Original file line number Diff line number Diff line change 33 replicas :
44 - type : s3
55 endpoint : ${REPLICA_URL}
6- bucket : sqlite
6+ bucket : ${REPLICA_BUCKET_NAME}
You can’t perform that action at this time.
0 commit comments