-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Environment Variables
Dmitry edited this page Jun 15, 2023
·
5 revisions
You can use environment variables instead of arguments for weed
.
For example:
instead of weed master -port 5000 -mdir /tmp -volumePreallocate -ip.bind 0.0.0.0
you can use
export IP_BIND=0.0.0.0
export PORT=5000
export MDIR=/tmp
export VOLUMEPREALLOCATE=true # or export VOLUMEPREALLOCATE=
weed master
For v
, logtostderr
, stderrthreshold
, vmoudle
, options
, logdir
, alsologtostderr
, log_backtrace_at
, and config_dir
you have to use WEED_
as prefix for environment variable like this WEED_CONFIG_DIR=/tmp
This is useful for using docker and docker compose
You have to override entrypoint to weed
because defautl entrypoint use default values for volumeSizeLimitMB
, volumePreallocate
, mdir
, dir
, and max
and setting environment variables won't change these values.
docker run --entrypoint weed -it -e IP_BIND=0.0.0.0 -e MDIR=/tmp -e PORT=5000 -e VOLUMEPREALLOCATE=true chrislusf/seaweedfs:3.45 master
version: '3.9'
services:
master:
image: chrislusf/seaweedfs:3.45
ports:
- 9333:9333
- 19333:19333
environment:
IP_BIND: 0.0.0.0
MDIR: /data
PORT: 9333
VOLUMEPREALLOCATE: 'true'
# or `VOLUMEPREALLOCATE:`
entrypoint: weed
command: master
- Replication
- Store file with a Time To Live
- Failover Master Server
- Erasure coding for warm storage
- Server Startup Setup
- Environment Variables
- Filer Setup
- Directories and Files
- Data Structure for Large Files
- Filer Data Encryption
- Filer Commands and Operations
- Filer JWT Use
- Filer Cassandra Setup
- Filer Redis Setup
- Filer YugabyteDB Setup
- Super Large Directories
- Path-Specific Filer Store
- Choosing a Filer Store
- Customize Filer Store
- Migrate to Filer Store
- Add New Filer Store
- Filer Store Replication
- Filer Active Active cross cluster continuous synchronization
- Filer as a Key-Large-Value Store
- Path Specific Configuration
- Filer Change Data Capture
- Cloud Drive Benefits
- Cloud Drive Architecture
- Configure Remote Storage
- Mount Remote Storage
- Cache Remote Storage
- Cloud Drive Quick Setup
- Gateway to Remote Object Storage
- Amazon S3 API
- AWS CLI with SeaweedFS
- s3cmd with SeaweedFS
- rclone with SeaweedFS
- restic with SeaweedFS
- nodejs with Seaweed S3
- S3 API Benchmark
- S3 API FAQ
- S3 Bucket Quota
- S3 API Audit log
- S3 Nginx Proxy
- Hadoop Compatible File System
- run Spark on SeaweedFS
- run HBase on SeaweedFS
- run Presto on SeaweedFS
- Hadoop Benchmark
- HDFS via S3 connector
- Async Replication to another Filer [Deprecated]
- Async Backup
- Async Filer Metadata Backup
- Async Replication to Cloud [Deprecated]
- Kubernetes Backups and Recovery with K8up