cron и фикс бага с пнг + защила filer
This commit is contained in:
+78
-10
@@ -22,23 +22,58 @@ services:
|
||||
memory: 1G
|
||||
restart: unless-stopped
|
||||
|
||||
s3:
|
||||
s3-core:
|
||||
image: chrislusf/seaweedfs:4.51
|
||||
entrypoint: ["weed"]
|
||||
command:
|
||||
- server
|
||||
- -s3
|
||||
- -dir=/data
|
||||
- -s3.config=/run/secrets/s3_config
|
||||
- -s3.port=8333
|
||||
- -s3.autoCreateBucket=false
|
||||
- -s3.concurrentFileUploadLimit=10
|
||||
- -s3.concurrentUploadLimitMB=100
|
||||
- -s3.readerCacheSizeMB=64
|
||||
secrets:
|
||||
- s3_config
|
||||
- -filer=true
|
||||
- -s3=false
|
||||
volumes:
|
||||
- seaweed_data:/data
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
- "curl --fail --silent http://127.0.0.1:8888/ >/dev/null"
|
||||
interval: 3s
|
||||
timeout: 2s
|
||||
retries: 30
|
||||
start_period: 10s
|
||||
networks:
|
||||
- seaweed_internal
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "1.0"
|
||||
memory: 1G
|
||||
restart: unless-stopped
|
||||
|
||||
s3:
|
||||
image: chrislusf/seaweedfs:4.51
|
||||
entrypoint: ["weed"]
|
||||
command:
|
||||
- s3
|
||||
- -filer=s3-core:8888
|
||||
- -config=/run/secrets/s3_config
|
||||
- -port=8333
|
||||
- -port.https=0
|
||||
- -port.grpc=0
|
||||
- -port.iceberg=0
|
||||
- -port.lance=0
|
||||
- -concurrentFileUploadLimit=10
|
||||
- -concurrentUploadLimitMB=100
|
||||
- -readerCacheSizeMB=64
|
||||
- -autoCreateBucket=false
|
||||
- -ip.bind=0.0.0.0
|
||||
secrets:
|
||||
- s3_config
|
||||
depends_on:
|
||||
s3-core:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- default
|
||||
- seaweed_internal
|
||||
healthcheck:
|
||||
test:
|
||||
- CMD-SHELL
|
||||
@@ -144,6 +179,35 @@ services:
|
||||
stop_grace_period: 20s
|
||||
restart: unless-stopped
|
||||
|
||||
reconciler:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
command: ["sh", "scripts/reconcile-loop.sh"]
|
||||
environment:
|
||||
DATABASE_URL_FILE: /run/secrets/database_url
|
||||
S3_ACCESS_KEY_ID_FILE: /run/secrets/s3_access_key_id
|
||||
S3_SECRET_ACCESS_KEY_FILE: /run/secrets/s3_secret_access_key
|
||||
S3_ENDPOINT: http://s3:8333
|
||||
S3_REGION: us-east-1
|
||||
S3_BUCKET: messenger-attachments
|
||||
DB_POOL_MAX_SIZE: "2"
|
||||
RECONCILE_INTERVAL_SECONDS: ${RECONCILE_INTERVAL_SECONDS:-900}
|
||||
RECONCILE_GRACE_SECONDS: ${RECONCILE_GRACE_SECONDS:-3600}
|
||||
secrets:
|
||||
- database_url
|
||||
- s3_access_key_id
|
||||
- s3_secret_access_key
|
||||
depends_on:
|
||||
migrate:
|
||||
condition: service_completed_successfully
|
||||
deploy:
|
||||
resources:
|
||||
limits:
|
||||
cpus: "0.5"
|
||||
memory: 256M
|
||||
restart: unless-stopped
|
||||
|
||||
load_balancer:
|
||||
image: haproxy:3.0.7-alpine
|
||||
ports:
|
||||
@@ -184,3 +248,7 @@ secrets:
|
||||
volumes:
|
||||
postgres_data:
|
||||
seaweed_data:
|
||||
|
||||
networks:
|
||||
seaweed_internal:
|
||||
internal: true
|
||||
|
||||
Reference in New Issue
Block a user