Migrate from MinIO to SeaweedFS
Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
@@ -20,12 +20,12 @@ services:
|
||||
PG_DATABASE: "probod"
|
||||
PG_POOL_SIZE: "100"
|
||||
|
||||
# AWS/MinIO S3 storage
|
||||
# S3-compatible storage (SeaweedFS)
|
||||
AWS_REGION: "us-east-1"
|
||||
AWS_BUCKET: "probod"
|
||||
AWS_ACCESS_KEY_ID: "probod"
|
||||
AWS_SECRET_ACCESS_KEY: "thisisnotasecret"
|
||||
AWS_ENDPOINT: "http://minio:9000"
|
||||
AWS_ENDPOINT: "http://seaweedfs:8333"
|
||||
|
||||
# Observability - Metrics & Tracing
|
||||
METRICS_ADDR: "probo:8081"
|
||||
@@ -48,7 +48,7 @@ services:
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
minio:
|
||||
seaweedfs:
|
||||
condition: service_started
|
||||
chrome:
|
||||
condition: service_started
|
||||
@@ -75,19 +75,23 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
minio:
|
||||
image: "quay.io/minio/minio"
|
||||
entrypoint: "sh"
|
||||
command: |
|
||||
-c 'mkdir -p /var/lib/minio/probod && minio server --json --console-address :9001 /var/lib/minio'
|
||||
seaweedfs:
|
||||
image: "chrislusf/seaweedfs:4.13"
|
||||
command: >
|
||||
server
|
||||
-s3
|
||||
-s3.config=/etc/seaweedfs/s3.json
|
||||
-s3.port=8333
|
||||
-volume.max=100
|
||||
-master.volumeSizeLimitMB=1024
|
||||
-dir=/data
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
- "8333:8333"
|
||||
- "9333:9333"
|
||||
- "8888:8888"
|
||||
volumes:
|
||||
- "minio-data:/var/lib/minio:rw"
|
||||
environment:
|
||||
MINIO_ROOT_USER: "probod"
|
||||
MINIO_ROOT_PASSWORD: "thisisnotasecret"
|
||||
- "./compose/seaweedfs/s3.json:/etc/seaweedfs/s3.json:ro"
|
||||
- "seaweedfs-data:/data:rw"
|
||||
|
||||
chrome:
|
||||
image: "chromedp/headless-shell:140.0.7259.2"
|
||||
@@ -109,4 +113,4 @@ services:
|
||||
volumes:
|
||||
probo-data:
|
||||
postgres-data:
|
||||
minio-data:
|
||||
seaweedfs-data:
|
||||
|
||||
Reference in New Issue
Block a user