Add a Linux tips section and move Docker stacks to /srv/docker
This commit is contained in:
@@ -16,12 +16,13 @@ description: Install File Browser Quantum, a modernized fork of File Browser, to
|
||||
---
|
||||
tree:
|
||||
/:
|
||||
- docker:
|
||||
- filebrowser-quantum:
|
||||
- compose.yaml
|
||||
- data:
|
||||
- config.yaml
|
||||
- filebrowser.sqlite
|
||||
- srv:
|
||||
- docker:
|
||||
- filebrowser-quantum:
|
||||
- compose.yaml
|
||||
- data:
|
||||
- config.yaml
|
||||
- filebrowser.sqlite
|
||||
---
|
||||
::
|
||||
|
||||
@@ -31,13 +32,13 @@ tree:
|
||||
Create the data folder:
|
||||
|
||||
```bash [Terminal]
|
||||
sudo mkdir -p /docker/filebrowser-quantum/data
|
||||
sudo mkdir -p /srv/docker/filebrowser-quantum/data
|
||||
```
|
||||
|
||||
Create the `config.yaml` file:
|
||||
|
||||
```bash [Terminal]
|
||||
sudo nano /docker/filebrowser-quantum/data/config.yaml
|
||||
sudo nano /srv/docker/filebrowser-quantum/data/config.yaml
|
||||
```
|
||||
|
||||
Paste the following, adding one `sources` entry per folder you want to browse:
|
||||
@@ -46,7 +47,7 @@ Paste the following, adding one `sources` entry per folder you want to browse:
|
||||
server:
|
||||
cacheDir: /home/filebrowser/data/tmp
|
||||
sources:
|
||||
- path: /docker
|
||||
- path: /srv/docker
|
||||
config:
|
||||
defaultEnabled: true
|
||||
- path: /media
|
||||
@@ -68,16 +69,16 @@ services:
|
||||
image: gtstef/filebrowser:beta
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /docker:/docker
|
||||
- /srv/docker:/srv/docker
|
||||
- /media:/media
|
||||
- /docker/filebrowser-quantum/data:/home/filebrowser/data
|
||||
- /srv/docker/filebrowser-quantum/data:/home/filebrowser/data
|
||||
ports:
|
||||
- 8020:80
|
||||
```
|
||||
|
||||
::note
|
||||
|
||||
Mount every folder you listed under `sources` in `config.yaml` at the same path inside the container (here `/docker` and `/media`), otherwise File Browser Quantum won't find them.
|
||||
Mount every folder you listed under `sources` in `config.yaml` at the same path inside the container (here `/srv/docker` and `/media`), otherwise File Browser Quantum won't find them.
|
||||
::
|
||||
|
||||
::tip{icon=""}
|
||||
@@ -151,7 +152,7 @@ Restart the stack by clicking "deploy" and wait for SWAG to fully initialize.
|
||||
In the Swag folders, create the file `fbq.subdomain.conf`.
|
||||
|
||||
```bash [Terminal]
|
||||
sudo nano /docker/swag/config/nginx/proxy-confs/fbq.subdomain.conf
|
||||
sudo nano /srv/docker/swag/config/nginx/proxy-confs/fbq.subdomain.conf
|
||||
```
|
||||
|
||||
And paste the following configuration:
|
||||
|
||||
Reference in New Issue
Block a user