Metadata-Version: 2.4
Name: youtrack-updater
Version: 1.0.3
Summary: Auto-update JetBrains YouTrack Docker containers
Project-URL: Repository, https://github.com/asamofal/youtrack-updater
Author-email: Anton Samofal <anton.smfl@gmail.com>
License-Expression: Apache-2.0
License-File: LICENSE
Keywords: automation,devops,docker,jetbrains,youtrack
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: System Administrators
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: System :: Systems Administration
Requires-Python: >=3.10
Requires-Dist: colorama>=0.4.6
Requires-Dist: packaging>=24.0
Requires-Dist: requests>=2.32.0
Description-Content-Type: text/markdown

# YouTrack Docker Updater

A CLI tool that checks for new JetBrains YouTrack Docker image versions and automatically updates a running instance managed via Docker Compose.

The tool:
- Reads the current YouTrack version from `docker-compose.yml`
- Compares it with the latest available Docker image tag
- Pre-pulls the new image to minimize downtime
- Updates `docker-compose.yml` and restarts the service

---

## Requirements

- Linux host with Docker installed
- Docker Compose v2 (`docker compose`)
- Python 3.10+
- A `docker-compose.yml` with a `jetbrains/youtrack:<tag>` image

## Installation

### With pipx (recommended)

```bash
pipx install youtrack-updater
```

### With pip

```bash
pip install youtrack-updater
```

## Upgrade

```bash
pipx upgrade youtrack-updater
```

## Usage

```bash
youtrack-updater
```

If a newer YouTrack version is available, you'll be prompted to confirm the update.

### Options

```
--compose-file PATH     Path to docker-compose.yml (default: docker-compose.yml)
--version               Show version and exit
```

### Examples

```bash
# default — looks for ./docker-compose.yml
youtrack-updater

# custom compose file location
youtrack-updater --compose-file /opt/youtrack/docker-compose.yml
```
