{"id":15957074,"url":"https://github.com/hadim/docker-insync","last_synced_at":"2026-02-09T23:33:54.376Z","repository":{"id":140826748,"uuid":"216870862","full_name":"hadim/docker-insync","owner":"hadim","description":"A Docker image to sync a Google Drive on disk using Insync and s6-overlay.","archived":false,"fork":false,"pushed_at":"2020-07-19T15:47:08.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-15T14:01:44.905Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hadim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-22T17:25:13.000Z","updated_at":"2020-07-30T01:47:52.000Z","dependencies_parsed_at":"2024-07-09T02:04:36.239Z","dependency_job_id":null,"html_url":"https://github.com/hadim/docker-insync","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-insync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-insync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-insync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hadim%2Fdocker-insync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hadim","download_url":"https://codeload.github.com/hadim/docker-insync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173554,"owners_count":20410300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-07T13:40:29.123Z","updated_at":"2026-02-09T23:33:54.313Z","avatar_url":"https://github.com/hadim.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-insync\n\n[![Docker Automated build](https://img.shields.io/docker/cloud/automated/hadim/docker-insync.svg)](https://hub.docker.com/r/hadim/docker-insync 'DockerHub')\n[![Docker Build Status](https://img.shields.io/docker/cloud/build/hadim/docker-insync.svg)](https://hub.docker.com/r/hadim/docker-insync 'DockerHub')\n[![Docker Pulls](https://img.shields.io/docker/pulls/hadim/docker-insync.svg)](https://hub.docker.com/r/hadim/docker-insync 'DockerHub')\n[![Docker Image Size](https://images.microbadger.com/badges/image/hadim/docker-insync.svg)](https://microbadger.com/images/hadim/docker-insync \"MicroBadger\")\n\nA Docker image to sync a Google Drive on disk using [Insync](https://www.insynchq.com/) and [`s6-overlay`](https://github.com/just-containers/s6-overlay).\n\n*Note: This Docker image is inspired from https://github.com/tiredofit/docker-insync.*\n\n## How to use\n\n### Docker Hub\n\nUse the following `docker-compose.yml` file:\n\n```yaml\nversion: '3'\n\nservices:\n\n  insync:\n    container_name: insync\n    image: hadim/docker-insync\n    restart: unless-stopped\n    environment:\n      TIMEZONE: \"America/Montreal\"\n      PUID: 1000\n      PGID: 1000\n      INSYNC_1_USERNAME: $DRIVE_USERNAME\n      INSYNC_1_AUTH_CODE: $DRIVE_TOKEN\n      INSYNC_1_DOWNLOAD: \"ms-office\"\n      INSYNC_1_DISABLE_SYNC: \u003e\n                             root:\u003cFOLDER_ID\u003e,\n                             root:\u003cFOLDER_ID\u003e,\n                             root:\u003cFOLDER_ID\u003e,\n      INSYNC_1_ENABLE_SYNC: \u003e\n                            root:\u003cFOLDER_ID\u003e,\n                            root:\u003cFOLDER_ID\u003e\n    volumes:\n      - ../Drive:/data\n```\n\n### Cloning\n\nYou need to clone this repository and build the repository:\n\n```bash\ngit clone https://github.com/hadim/docker-insync.git\ncd docker-insync/\ndocker-compose build\n```\n\nEdit `docker-compose.yml`. Then run the container:\n\n```bash\ndocker-compose up -d\ndocker-compose logs -f insync\n```\n\n## Configurations\n\n### Data Volumes\n\n| Directory | Description |\n| --- | --- |\n| `/data` | Backup and Configuration Directory |\n\n### Environment Variables\n\n| Parameter | Description | Default |\n| --- | --- | --- |\n| `TIMEZONE` | [Timezone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | `\"America/Montreal\"` |\n| `PUID` | User ID (use `id $USER`) | `1000` |\n| `PGID` | Group ID (use `id $USER`) | `1000` |\n| `INSYNC_1_USERNAME` | Google Drive username (email) | `$DRIVE_USERNAME` |\n| `INSYNC_1_AUTH_CODE` | [Google Drive Auth Token](https://insynchq.com/auth) | `$DRIVE_TOKEN` |\n| `INSYNC_1_DOWNLOAD` | How to download Office files: `link` (.gdoc), `ms-office` (.docx), `open-document` (.odt) | `\"ms-office\"` |\n| `INSYNC_1_DISABLE_SYNC` | List of folder IDs separated by a comma to exclude. |  |\n| `INSYNC_1_ENABLE_SYNC` | List of folder IDs separated by a comma to include. |  |\n\nYou can also define `INSYNC_2_USERNAME`, `INSYNC_3_USERNAME` and so forth to sync multiple users.\n\n## License\n\n[MIT License](./LICENSE).\n\n## Author\n\n- [Hadrien Mary](https://github.com/hadim)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadim%2Fdocker-insync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhadim%2Fdocker-insync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhadim%2Fdocker-insync/lists"}