mirror of
https://github.com/tiyn/wiki.git
synced 2026-02-22 10:24:47 +01:00
Structure:
- main wiki folder added - removed partition into software-types - thinking about partition by software/general
This commit is contained in:
39
wiki/onedrive.md
Normal file
39
wiki/onedrive.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# Onedrive
|
||||
|
||||
## Setup Mirror
|
||||
|
||||
### Docker
|
||||
|
||||
The official container and documentation was made by [oznu](https://hub.docker.com/r/oznu/onedrive).
|
||||
|
||||
#### Environment-variables
|
||||
Set the following variables with the -e tag.
|
||||
|
||||
| Name | Usage | Default |
|
||||
| ---- | -------- | ------- |
|
||||
| PUID | UserID | |
|
||||
| PGID | GroupID | |
|
||||
|
||||
#### Volumes
|
||||
Set the following volumes with the -v tag.
|
||||
|
||||
| Volume-Name | Container mount | Description |
|
||||
| ---------------- | --------------- | ----------------------------------------------- |
|
||||
| onedrive\_config | /config | configuration storage for the server connection |
|
||||
| onedrive\_doc | /documents | storage for downloaded documents |
|
||||
|
||||
#### Rebuild
|
||||
|
||||
```
|
||||
#!/bin/sh
|
||||
docker stop onedrive
|
||||
docker rm onedrive
|
||||
docker pull oznu/onedrive:latest
|
||||
docker run --name onedrive \
|
||||
--restart unless-stopped \
|
||||
-v onedrive_config:/config \
|
||||
-v onedrive_doc:/documents \
|
||||
-e PUID=$(id -u) \
|
||||
-e PGID=$(id -g) \
|
||||
-d oznu/onedrive:latest
|
||||
```
|
||||
Reference in New Issue
Block a user