33 lines
No EOL
1.1 KiB
YAML
33 lines
No EOL
1.1 KiB
YAML
services:
|
|
seaweedfs:
|
|
image: chrislusf/seaweedfs:latest
|
|
ports:
|
|
- "9333:9333"
|
|
- "8333:8333"
|
|
- "8888:8888"
|
|
volumes:
|
|
- seaweedfs_data:/data
|
|
- ./s3.json:/data/s3.json:ro
|
|
- ./security.toml:/data/security.toml:ro
|
|
command: >
|
|
server -dir=/data -filer
|
|
-s3 -s3.config=/data/s3.json
|
|
-iam.config=/data/security.toml
|
|
healthcheck:
|
|
test: ["CMD-SHELL",
|
|
"curl -sf http://localhost:9333/cluster/status && curl -sf http://localhost:8888/"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 30s
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.filer.rule=Host(`fs.marcopedone.it`)"
|
|
- "traefik.http.routers.filer.entrypoints=websecure"
|
|
- "traefik.http.routers.filer.tls.certresolver=letsencrypt"
|
|
- "traefik.http.services.filer.loadbalancer.server.port=8888"
|
|
- "traefik.http.routers.filer.middlewares=filer-auth"
|
|
- "traefik.http.middlewares.filer-auth.basicauth.users=admin:$2a$12$2w9VLBATy0eHhU4IAIg8t.bz9/ZSzS9yf5uv4Hn1nUhp28ZY7An8y"
|
|
|
|
volumes:
|
|
seaweedfs_data: |