# Self-host TubeSync

> Syncs chosen video channels and playlists to local storage on a schedule and keeps media library files tidy.

- Page: https://levelrail.com/templates/tubesync/
- JSON: https://levelrail.com/templates/tubesync.json
- Category: Media
- Licence: AGPL-3.0-only (Network copyleft (AGPL) license)
- Source: https://github.com/meeb/tubesync
- Upstream docs: https://github.com/meeb/tubesync

## Requirements
- Memory: about 512 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: v0.19.0

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| tubesync | ghcr.io/meeb/tubesync | v0.19.0 | 4848 | config -> /config; downloads -> /downloads |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| tubesync | HTTP_PASS | generated |
| tubesync | HTTP_USER | preset |
| tubesync | PGID | preset |
| tubesync | PUID | preset |
| tubesync | TZ | preset |

## Deploy

### CLI

```bash
levelrail-cli templates install tubesync --name my-tubesync
```

Add --domain SERVICE=HOST to serve a service on your own domain, for example --domain tubesync=app.example.com.

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
  https://levelrail.example.com/api/v1/service-templates/tubesync/install \
  -d '{
    "name": "my-tubesync"
  }'
```

Create a token in the dashboard first. Name, env and domains are the request fields.

## First run
1. Sign in as admin with the generated password, then add a source.

## Questions

### Can I deploy TubeSync on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for TubeSync, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image ghcr.io/meeb/tubesync:v0.19.0 is what you deploy there.

Self-host TubeSync, TubeSync docker compose file, deploy TubeSync on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
