# documentation: https://filebrowser.org
# slogan: FileBrowser is a web-based file manager and file explorer with a user-friendly interface.
# tags: file-management, storage-access, data-organization, file-utilization, administration-tool
# logo: svgs/filebrowser.svg

services:
  filebrowser:
    image: filebrowser/filebrowser:latest
    environment:
      - SERVICE_FQDN_FILEBROWSER
    volumes:
      - type: bind
        source: ./srv
        target: /srv
        isDirectory: true
      - ./database.db:/database.db
      - type: bind
        source: ./filebrowser.json
        target: /.filebrowser.json
        read_only: true
        content: "{}"
    healthcheck:
      test: ["CMD", "curl", "-f", "http://127.0.0.1:80"]
      interval: 2s
      timeout: 10s
      retries: 15
