-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcompose.yaml
More file actions
75 lines (67 loc) · 3.19 KB
/
Copy pathcompose.yaml
File metadata and controls
75 lines (67 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: means-single
services:
means:
image: hejiale010426/means
build:
context: .
dockerfile: src/Means/Dockerfile
container_name: means
restart: unless-stopped
user: "0:0"
ports:
- "${MEANS_HTTP_PORT:-5178}:8080"
environment:
ASPNETCORE_ENVIRONMENT: "${ASPNETCORE_ENVIRONMENT:-Production}"
ASPNETCORE_URLS: "http://+:8080"
AllowedHosts: "*"
Means__S3__ServiceHost: "${MEANS_S3_SERVICE_HOST:-localhost}"
Means__S3__DomainSuffix: "${MEANS_S3_DOMAIN_SUFFIX:-means.local}"
Means__S3__AliasPrefix: "/s3"
Means__Storage__ObjectsPath: "/data/objects"
Means__Storage__Disks__0: "/data/xlfs/disk1"
Means__Storage__Disks__1: "/data/xlfs/disk2"
Means__Storage__Disks__2: "/data/xlfs/disk3"
Means__Storage__Disks__3: "/data/xlfs/disk4"
Means__Storage__DeploymentId: "${MEANS_DEPLOYMENT_ID:-means-local-single}"
Means__Storage__SetId: "set-1"
Means__Storage__ErasureDataShards: "2"
Means__Storage__ErasureParityShards: "2"
Means__Storage__WriteQuorum: "3"
Means__Storage__ReadQuorum: "1"
Means__Storage__MetaSyncMode: "${MEANS_META_SYNC_MODE:-Always}"
Means__Storage__VerifyChecksumOnRead: "${MEANS_VERIFY_CHECKSUM_ON_READ:-false}"
# Bootstrap S3 credentials. Prefer host env MEANS_ACCESS_KEY / MEANS_SECRET_KEY.
# Compose only interpolates ${...} from the host/.env — not from sibling keys in this block.
# On every startup Means re-applies these values to the bootstrap access key metadata,
# so changing them and recreating the container takes effect without wiping volumes.
Means__Storage__DefaultAccessKey: "${MEANS_ACCESS_KEY:-meansadmin}"
Means__Storage__DefaultSecretKey: "${MEANS_SECRET_KEY:-meansadmin-local-secret}"
Means__Storage__MultipartUploadCleanupAgeHours: "24"
Means__Storage__MultipartUploadCleanupIntervalMinutes: "60"
Means__Cluster__ClusterId: "local"
Means__Cluster__ClusterName: "Local Means Cluster"
Means__Cluster__NodeId: "means-single"
Means__Cluster__NodeEndpoint: "http://localhost:${MEANS_HTTP_PORT:-5178}"
Means__Cluster__PoolId: "pool-1"
Means__Cluster__PoolName: "Pool 1"
Means__Cluster__ObjectDiskId: "means-single-objects"
Means__RequestLimits__MaxUploadSizeBytes: "${MEANS_MAX_UPLOAD_SIZE_BYTES:-1073741824}"
Means__RequestLimits__MaxConcurrentUploadRequests: "${MEANS_MAX_CONCURRENT_UPLOADS:-64}"
Means__RateLimits__Enabled: "${MEANS_RATE_LIMITS_ENABLED:-true}"
Means__Telemetry__Enabled: "${MEANS_TELEMETRY_ENABLED:-false}"
Means__Telemetry__OtlpEndpoint: "${MEANS_OTLP_ENDPOINT:-}"
Means__Console__AdminUser: "${MEANS_CONSOLE_ADMIN_USER:-meansadmin}"
Means__Console__AdminPassword: "${MEANS_CONSOLE_ADMIN_PASSWORD:-meansadmin-local}"
Means__Console__SessionHours: "${MEANS_CONSOLE_SESSION_HOURS:-8}"
volumes:
- means-objects:/data/objects
- means-xlfs-disk1:/data/xlfs/disk1
- means-xlfs-disk2:/data/xlfs/disk2
- means-xlfs-disk3:/data/xlfs/disk3
- means-xlfs-disk4:/data/xlfs/disk4
volumes:
means-objects:
means-xlfs-disk1:
means-xlfs-disk2:
means-xlfs-disk3:
means-xlfs-disk4: