These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
  1. # Onedrive
  2. ## Setup Mirror
  3. ### Docker
  4. The official container and documentation was made by [oznu](https://hub.docker.com/r/oznu/onedrive).
  5. #### Environment-variables
  6. Set the following variables with the -e tag.
  7. | Name | Usage | Default |
  8. | ------ | ------- | ------- |
  9. | `PUID` | UserID | |
  10. | `PGID` | GroupID | |
  11. #### Volumes
  12. Set the following volumes with the -v tag.
  13. | Volume-Name | Container mount | Description |
  14. | ----------------- | --------------- | ----------------------------------------------- |
  15. | `onedrive_config` | `/config` | configuration storage for the server connection |
  16. | `onedrive_doc` | `/documents` | storage for downloaded documents |
  17. #### Rebuild
  18. ```shell
  19. #!/bin/sh
  20. docker stop onedrive
  21. docker rm onedrive
  22. docker pull oznu/onedrive:latest
  23. docker run --name onedrive \
  24. --restart unless-stopped \
  25. -v onedrive_config:/config \
  26. -v onedrive_doc:/documents \
  27. -e PUID=$(id -u) \
  28. -e PGID=$(id -g) \
  29. -d oznu/onedrive:latest
  30. ```