infoalloggi-monorepo/apps/storage/docker-compose.yml
2026-05-14 10:47:14 +02:00

32 lines
No EOL
1.1 KiB
YAML

services:
seaweedfs:
image: chrislusf/seaweedfs:latest
restart: unless-stopped
expose:
- 9333
- 8333
- 8888
networks:
- dokploy-network
volumes:
- seaweedfs_data:/data
- ./s3.json:/etc/seaweedfs/config.json
command: "server -dir=/data -s3 -s3.config=/etc/seaweedfs/config.json"
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: