This commit is contained in:
Jared Furlow 2025-05-10 20:07:14 -05:00
commit 2ed41d5dd5
3 changed files with 47 additions and 0 deletions

7
Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM dxflrs/garage:v1.1.0
WORKDIR /opt/prod/app
COPY . .
RUN 'envsubst "$(env)" < garage.toml > garage-env-added.toml'
RUN cp garage-env-added.toml /etc/garage.toml

18
docker-compose.yaml Normal file
View File

@ -0,0 +1,18 @@
services:
bore-tunnel:
restart: unless-stopped
build:
context: .
dockerfile: ./Dockerfile
environment:
- 'GARAGE_RPC_SECRET=${GARAGE_RPC_SECRET}'
volumes:
- /mnt/Samsung1TB/garage-fs/meta:/opt/prod/garage-fs/meta
- /mnt/Samsung1TB/garage-fs/data:/opt/prod/garage-fs/data
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "3900"]
interval: 5s
start_period: 30s
start_interval: 1s
timeout: 10s
retries: 15

22
garage.toml Normal file
View File

@ -0,0 +1,22 @@
metadata_dir = "/opt/prod/garage-fs/meta"
data_dir = "/opt/prod/garage-fs/data"
db_engine = "lmdb"
metadata_auto_snapshot_interval = "6h"
replication_factor = 3
compression_level = 2
rpc_bind_addr = "[::]:3901"
rpc_public_addr = "127.0.0.1:3901"
rpc_secret = "${GARAGE_RPC_SECRET}"
[s3_api]
s3_region = "garage"
api_bind_addr = "[::]:3900"
root_domain = "garage-ikea.jdf2.org"
[s3_web]
bind_addr = "[::]:3902"
root_domain = "garage-ikea.jdf2.org"
index = "index.html"