forked from maltokyo/docker-google-drive-ocamlfuse
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
22 lines (22 loc) · 1.16 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: '3'
services:
google-drive-ocamlfuse:
container_name: google-drive-ocamlfuse
image: maltokyo/docker-google-drive-ocamlfuse:0.7.21 # this version is in sync with the official google-drive-ocamlfuse release, starting at 0.7.19
restart: always
environment:
# below are must have for first run only, after that comment them out!
#CLIENT_ID: "YOUR_CLIENT_ID"
#CLIENT_SECRET: "YOUR_CLIENT_SECRET"
#VERIFICATION_CODE: "YOUR_VERIFICATION_CODE"
MOUNT_OPTS: "nonempty,allow_other" #nonempty will ensure that it still will mount even if you have some leftover artefacts/rubbish inside the mount dir on your host. That is dangerous if you have something in there, so ensure it is empty when you begin
security_opt:
- "apparmor:unconfined"
cap_add:
- "mknod"
- "sys_admin"
devices:
- "/dev/fuse"
volumes:
- "./google-drive-ocamlfuse_local_data:/mnt/gdrive:shared" # change the first path to where you want to store your local data to sync with google drive
- "./google-drive-ocamlfuse_local_config:/config/.gdfuse/default" # change the first path to where you want to store your config data