diff --git a/docker-compose.yaml b/docker-compose.yaml index 5e571b1..5a6bb50 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -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: diff --git a/litestream/litestream.template.yaml b/litestream/litestream.template.yaml index a390de9..98a7048 100644 --- a/litestream/litestream.template.yaml +++ b/litestream/litestream.template.yaml @@ -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