-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfilebrowser.yml
30 lines (29 loc) · 889 Bytes
/
filebrowser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
version: "3.7"
services:
# File Browser
file:
container_name: file
hostname: file
image: filebrowser/filebrowser
restart: unless-stopped
networks:
home_net:
ipv4_address: 192.168.0.94
ports:
- "80:80"
volumes:
- $VOLUME/file/database.db:/database.db
- $HOME:/srv # you can mount any folder here which you would like to see in file browser
labels:
- "traefik.enable=true"
## HTTP Routers
- "traefik.http.routers.file-rtr.entrypoints=https"
- "traefik.http.routers.file-rtr.rule=HostHeader(`file.$DOMAINNAME`)"
## Middlewares
- "traefik.http.routers.file-rtr.middlewares=chain-authelia@file"
## HTTP Services
- "traefik.http.routers.file-rtr.service=file-svc"
- "traefik.http.services.file-svc.loadbalancer.server.port=80"
networks:
home_net:
external: true