mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-06-28 15:41:13 +08:00
Created Docker Compose for S3 (markdown)
parent
2c53293ac1
commit
fb40ab7c50
42
Docker-Compose-for-S3.md
Normal file
42
Docker-Compose-for-S3.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
To use SeaweedFS S3 API, here is the simplest form:
|
||||||
|
|
||||||
|
```
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
|
services:
|
||||||
|
seaweedfs-s3:
|
||||||
|
image: chrislusf/seaweedfs
|
||||||
|
container_name: seaweedfs-s3
|
||||||
|
ports:
|
||||||
|
- "8333:8333"
|
||||||
|
entrypoint: /bin/sh -c
|
||||||
|
command: |
|
||||||
|
"echo '{
|
||||||
|
\"identities\": [
|
||||||
|
{
|
||||||
|
\"name\": \"anonymous\",
|
||||||
|
\"actions\": [
|
||||||
|
\"Read\"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
\"name\": \"some_admin_user\",
|
||||||
|
\"credentials\": [
|
||||||
|
{
|
||||||
|
\"accessKey\": \"some_access_key1\",
|
||||||
|
\"secretKey\": \"some_secret_key1\"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
\"actions\": [
|
||||||
|
\"Admin\",
|
||||||
|
\"Read\",
|
||||||
|
\"List\",
|
||||||
|
\"Tagging\",
|
||||||
|
\"Write\"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}' > /etc/seaweedfs/config.json && \
|
||||||
|
weed server -s3 -s3.config /etc/seaweedfs/config.json"
|
||||||
|
restart: unless-stopped
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user