Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #116 from ar-io/litestream-v2
Browse files Browse the repository at this point in the history
chore(docker): update docker env vars and add names to replicas
  • Loading branch information
dtfiedler authored May 28, 2024
2 parents 2e6c281 + 51391ef commit 7628ce2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ services:
TVAL_S3_BUCKET: ${LITESTREAM_S3_BUCKET:-}
TVAL_AWS_ACCESS_KEY_ID: ${LITESTREAM_AWS_ACCESS_KEY_ID:-}
TVAL_AWS_SECRET_ACCESS_KEY: ${LITESTREAM_AWS_SECRET_ACCESS_KEY:-}
TVAL_S3_BUCKET_REGION: ${LITESTREAM_S3_BUCKET_REGION:-}
WAIT_TIME_SECONDS: ${LITESTREAM_WAIT_TIME_SECONDS:-}
RESTORE_FROM_BACKUP: ${LITESTREAM_RESTORE_FROM_BACKUP:-false}
volumes:
Expand Down
12 changes: 10 additions & 2 deletions litestream/litestream.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,19 @@ secret-access-key: #@ data.values.AWS_SECRET_ACCESS_KEY
dbs:
- path: #@ data.values.LOCAL_DB_PATH + "/state.db"
replicas:
- type: s3
- name: warp.state.db
type: s3
bucket: #@ data.values.S3_BUCKET
path: #@ data.values.S3_BUCKET_PATH
region: #@ data.values.S3_BUCKET_REGION
sync-interval: 1m
snapshot-interval: 6h
- path: #@ data.values.LOCAL_DB_PATH + "/contract.db"
replicas:
- type: s3
- name: warp.contracts.db
type: s3
bucket: #@ data.values.S3_BUCKET
path: #@ data.values.S3_BUCKET_PATH
region: #@ data.values.S3_BUCKET_REGION
sync-interval: 1m
snapshot-interval: 6h

0 comments on commit 7628ce2

Please sign in to comment.