-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.rclone.yml
45 lines (40 loc) · 1.47 KB
/
docker-compose.rclone.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: '2.4'
services:
filebrowser:
image: filebrowser/filebrowser:latest
container_name: filebrowser
ports:
- 4000:4000
volumes:
- persistent_data:/srv
# you need to hash password yourself, see:
# https://github.com/filebrowser/filebrowser/issues/381#issuecomment-653241530
# login with "username" and "password"
- ./filebrowser.json:/.filebrowser.json
# see this comment, to be able to use different port as port 80 you need to change healthcheck, see:
# https://github.com/filebrowser/filebrowser/pull/1409#issuecomment-895283609
healthcheck:
test: curl -f http://localhost:4000/health || exit 1
example:
image: alpine
container_name: example
command: sleep 1d
volumes:
- persistent_data:/mnt
volumes:
persistent_data:
name: "persistent_data"
driver: rclone
driver_opts:
# the remote is your rclone.conf name (the part between [ ] on top), followed by your digital ocean space name
remote: "digitaloceanspaces:spacename"
# persistent_data_subfolder:
# name: "persistent_data_subfolder"
# driver: rclone
# driver_opts:
# # the remote is your rclone.conf name (the part between [ ] on top), followed by your digital ocean space name and optionally a subfolder
# remote: "digitaloceanspaces:spacename/subfolder"
# # you could allow other users eg. for a node application:
# # allow_other: 'true'
# # uid: 1000
# # gid: 1000