Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Init

Smaug673919eecde11728
diff --git a/.gitignore b/.gitignore
index fc4c893a..01f7791e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,5 @@
minio
uploads
minio.exe
-main.exe
\ No newline at end of file
+main.exe
+data
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.yml
index 20b92cd6..a0f542c9 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -21,27 +21,26 @@ services:
retries: 5
start_period: 30s
- # MinIO Object Storage
- minio:
- image: minio/minio:latest
- container_name: alexandrie-minio
+ # Object Storage
+ garage:
+ image: dxflrs/garage:v2.1.0
+ container_name: alexandrie-garage
restart: unless-stopped
- environment:
- MINIO_ROOT_USER: minioadmin
- MINIO_ROOT_PASSWORD: minioadmin
- command: server /data --console-address ":9001"
- volumes:
- - minio_data:/data
ports:
- - '9000:9000'
- - '9001:9001'
+ - '3900:3900' # API S3
+ - '3902:3902' # Admin interface
+ volumes:
+ - ./garage.toml:/etc/garage.toml
+ - garage_data:/data
+ - garage_metadata:/metadata
networks:
- alexandrie-network
healthcheck:
- test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
+ test: ['CMD', '/garage', 'status']
interval: 30s
- timeout: 20s
+ timeout: 10s
retries: 3
+ start_period: 30s
# Alexandrie Backend
backend:
@@ -61,9 +60,9 @@ services:
COOKIE_DOMAIN: localhost # Very optional, can be left empty. For auth cookies: If you can't login (or you are disconnected immediatly), check this; DON'T set an URL just the DOMAIN (e.g., "example.com" or "localhost")
# MinIO Configuration (optional, you can replace config with "" to disable MinIO usage)
- MINIO_ENDPOINT: minio:9000
- MINIO_ACCESSKEY: minioadmin
- MINIO_SECRETKEY: minioadmin
+ MINIO_ENDPOINT: garage:3900
+ MINIO_ACCESSKEY: alexandrie-key
+ MINIO_SECRETKEY: alexandrie-secret
MINIO_BUCKET: alexandrie
# SMTP Configuration (optional)
@@ -81,7 +80,7 @@ services:
depends_on:
mysql:
condition: service_healthy
- minio:
+ garage:
condition: service_healthy
networks:
- alexandrie-network
@@ -111,5 +110,7 @@ networks:
volumes:
mysql_data:
driver: local
- minio_data:
+ garage_data:
+ driver: local
+ garage_metadata:
driver: local
diff --git a/garage.toml b/garage.toml
new file mode 100644
index 00000000..db681f6e
--- /dev/null
+++ b/garage.toml
@@ -0,0 +1,39 @@
+# Garage Configuration File - Production Ready
+
+# Core storage paths
+metadata_dir = "/var/lib/garage/meta" # Fast storage preferred
+data_dir = "/var/lib/garage/data" # High capacity storage
+
+# Database engine selection
+db_engine = "lmdb" # Fastest option, use "sqlite" for ARM or 32-bit systems
+
+# Automatic backup for metadata
+metadata_auto_snapshot_interval = "6h" # Regular snapshots for recovery
+
+# Cluster configuration
+replication_factor = 1 # Use 3 for production clusters
+compression_level = 2 # Balance between CPU usage and storage efficiency
+
+# Network configuration
+rpc_bind_addr = "[::]:3901"
+rpc_public_addr = "127.0.0.1:3901" # Change to actual IP for clustering
+rpc_secret = "c83ae7bcec0e93016139f09b3fc6a75453d87b2b5cc39d84735efa939309de39" # 64-character hex string
+
+# S3 API endpoint configuration
+[s3_api]
+s3_region = "garage"
+api_bind_addr = "[::]:3900"
+root_domain = ".s3.garage.localhost"
+
+
+# Static website hosting
+[s3_web]
+bind_addr = "[::]:3902"
+root_domain = ".web.garage.localhost"
+index = "index.html"
+
+# Administrative interface
+[admin]
+api_bind_addr = "[::]:3903"
+admin_token = "secure_admin_token"
+metrics_token = "secure_metrics_token"
\ No newline at end of file