Skip to content

filebrowser

  • Run docker compose up -d with commented out volumes:
YAML
services:
  filebrowser:
    image: filebrowser/filebrowser:v2.31.1
    container_name: filebrowser
    hostname: filebrowser
    volumes:
      - ./share-data:/srv
#      - ./database.db:/database.db
#      - ./filebrowser.json:/.filebrowser.json
    ports:
      - 8080:80
  • Copy db and json
Bash
docker cp filebrowser:/database.db database.db && docker cp filebrowser:/.filebrowser.json filebrowser.json
  • Next, do:
Bash
docker compose down
YAML
services:
  filebrowser:
    image: filebrowser/filebrowser:v2.31.1
    container_name: filebrowser
    hostname: filebrowser
    volumes:
      - ./share-data:/srv
     - ./database.db:/database.db
     - ./filebrowser.json:/.filebrowser.json
    ports:
      - 8080:80
Bash
docker compose up -d

Offical link