Files
sendou.ink/compose.yaml
2026-09-14 21:21:02 +03:00

26 lines
996 B
YAML

services:
seaweedfs:
image: "chrislusf/seaweedfs:latest"
ports:
- "9000:9000"
- "8888:8888"
entrypoint: >
/bin/sh -c '
isReady() { curl -sf -o /dev/null http://127.0.0.1:9000/sendou/.ready; } # reading the marker back over S3 proves the whole chain is up
(
until isReady; do
echo "s3.bucket.create -name sendou" | weed shell -master=127.0.0.1:9333 >/dev/null 2>&1 # create the test bucket
curl -sf -o /dev/null -T /etc/hostname http://127.0.0.1:8888/buckets/sendou/.ready # write the marker through the filer
sleep 1
done
) &
exec weed $$0 "$$@" # start SeaweedFS in the foreground
'
volumes:
- ./docker/seaweedfs-s3.json:/etc/seaweedfs/s3.json:ro
- seaweedfs-data:/data
command: server -dir=/data -filer -s3 -s3.port=9000 -s3.config=/etc/seaweedfs/s3.json
volumes:
seaweedfs-data: