1 parent
2c98b8f925
commit
e4aa787e06
27 files changed
+179
-110
No files matched your search
+3
-3
@@ -1,11 +1,11 @@
|
||||
FROM rust:1.88-bookworm AS builder
|
||||
FROM rust:1.99.1-trixie AS builder
|
||||
WORKDIR /build
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends pkg-config libssl-dev ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||
COPY . .
|
||||
RUN cargo generate-lockfile && cargo build --release --locked
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates libssl3 && rm -rf /var/lib/apt/lists/*
|
||||
FROM debian:trixie-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates libssl3t64 && rm -rf /var/lib/apt/lists/*
|
||||
RUN useradd --system --uid 10001 --create-home --home-dir /var/lib/rustbox rustbox
|
||||
COPY --from=builder /build/target/release/rustbox /usr/local/bin/rustbox
|
||||
USER rustbox
|
||||
|
||||
+9
-9
@@ -10,8 +10,8 @@ Two RustBox nodes + Envoy + Valkey + PostgreSQL + OpenSearch + Garage S3:
|
||||
|
||||
```bash
|
||||
PORT=3009 \
|
||||
IMAP_HOST=mail.linuxiarz.pl \
|
||||
SMTP_HOST=mail.linuxiarz.pl \
|
||||
IMAP_HOST=mail.example.com \
|
||||
SMTP_HOST=mail.example.com \
|
||||
docker compose -p rustbox-ha -f compose-ha-garage.yml up --build
|
||||
```
|
||||
|
||||
@@ -26,16 +26,16 @@ PostgreSQL + S3/SILO + OpenSearch:
|
||||
|
||||
```bash
|
||||
PORT=3009 \
|
||||
IMAP_HOST=mail.linuxiarz.pl \
|
||||
SMTP_HOST=mail.linuxiarz.pl \
|
||||
IMAP_HOST=mail.example.com \
|
||||
SMTP_HOST=mail.example.com \
|
||||
docker compose -p rustbox -f compose-postgres-s3-opensearch.yml up --build
|
||||
```
|
||||
|
||||
SQLite, local blobs and local Tantivy:
|
||||
|
||||
```bash
|
||||
IMAP_HOST=mail.linuxiarz.pl \
|
||||
SMTP_HOST=mail.linuxiarz.pl \
|
||||
IMAP_HOST=mail.example.com \
|
||||
SMTP_HOST=mail.example.com \
|
||||
docker compose -p rustbox -f compose-single-sqlite.yml up --build
|
||||
```
|
||||
|
||||
@@ -44,8 +44,8 @@ MySQL + NFS + OpenSearch:
|
||||
```bash
|
||||
NFS_SERVER=10.0.0.10 \
|
||||
NFS_EXPORT=/exports/rustbox \
|
||||
IMAP_HOST=mail.linuxiarz.pl \
|
||||
SMTP_HOST=mail.linuxiarz.pl \
|
||||
IMAP_HOST=mail.example.com \
|
||||
SMTP_HOST=mail.example.com \
|
||||
docker compose -p rustbox -f compose-mysql-nfs-opensearch.yml up --build
|
||||
```
|
||||
|
||||
@@ -201,4 +201,4 @@ docker compose -p rustbox -f compose-postgres-s3-opensearch.yml exec opensearch
|
||||
-d '{"index.blocks.read_only_allow_delete":null}'
|
||||
```
|
||||
|
||||
RustBox 0.2.3 retains the OpenSearch outbox backoff introduced in 0.2.2, so these 429/flood-stage responses no longer produce one warning per queued event on a full disk.
|
||||
RustBox 0.2.4 retains the OpenSearch outbox backoff introduced in 0.2.2, so these 429/flood-stage responses no longer produce one warning per queued event on a full disk.
|
||||
@@ -42,7 +42,7 @@ x-rustbox-common: &rustbox-common
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-bookworm
|
||||
image: postgres:17-trixie
|
||||
environment:
|
||||
POSTGRES_DB: rustbox
|
||||
POSTGRES_USER: rustbox
|
||||
@@ -103,7 +103,7 @@ services:
|
||||
- garage-data:/var/lib/garage/data
|
||||
networks:
|
||||
rustbox-ha:
|
||||
ipv4_address: 172.28.80.10
|
||||
ipv4_address: 10.240.6.10
|
||||
|
||||
garage-init:
|
||||
build:
|
||||
@@ -154,4 +154,4 @@ networks:
|
||||
rustbox-ha:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: 172.28.80.0/24
|
||||
- subnet: 10.240.6.0/24
|
||||
@@ -2,7 +2,7 @@ name: rustbox
|
||||
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:17-bookworm
|
||||
image: postgres:17-trixie
|
||||
environment:
|
||||
POSTGRES_DB: rustbox
|
||||
POSTGRES_USER: rustbox
|
||||
|
||||
@@ -10,7 +10,7 @@ sieve_enabled = false
|
||||
diagnostics_enabled = true
|
||||
about_enabled = true
|
||||
security_headers_enabled = false
|
||||
trusted_proxies = "172.28.80.0/24"
|
||||
trusted_proxies = "10.240.6.0/24"
|
||||
|
||||
[storage]
|
||||
backend = "s3"
|
||||
|
||||
@@ -3,7 +3,7 @@ data_dir = "/var/lib/garage/data"
|
||||
db_engine = "sqlite"
|
||||
replication_factor = 1
|
||||
rpc_bind_addr = "0.0.0.0:3901"
|
||||
rpc_public_addr = "172.28.80.10:3901"
|
||||
rpc_public_addr = "10.240.6.10:3901"
|
||||
rpc_secret = "8f2ec1b94f2ff5fc39391d8e1666929f8d6adc4f2270d5c950866a0a65e5f4b3"
|
||||
|
||||
[s3_api]
|
||||
|
||||
Reference in new issue
Block a user