mirror of
https://github.com/Dasemu/Maskarr.git
synced 2026-11-26 15:26:10 +00:00
chore: bootstrap Claude setup
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4f0a0423be
commit
4ed8ab0a0c
10 files changed
+428
-289
No files matched your search
@@ -0,0 +1,99 @@
|
||||
# Deployment
|
||||
|
||||
## Run as a service (systemd)
|
||||
|
||||
Create `/etc/systemd/system/maskarr.service`:
|
||||
|
||||
```ini
|
||||
[Unit]
|
||||
Description=Maskarr Tracker Proxy
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=youruser
|
||||
WorkingDirectory=/path/to/maskarr
|
||||
ExecStart=/usr/bin/python3 /path/to/maskarr/maskarr.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
Enable and start:
|
||||
```bash
|
||||
sudo systemctl enable maskarr
|
||||
sudo systemctl start maskarr
|
||||
sudo systemctl status maskarr
|
||||
```
|
||||
|
||||
## Docker
|
||||
|
||||
### Using Docker Compose (recommended)
|
||||
|
||||
```bash
|
||||
# Download docker-compose.yml
|
||||
wget https://raw.githubusercontent.com/yourusername/maskarr/main/docker-compose.yml
|
||||
|
||||
# Create config directory
|
||||
mkdir -p config
|
||||
|
||||
# Start the service
|
||||
docker-compose up -d
|
||||
|
||||
# View logs
|
||||
docker-compose logs -f
|
||||
```
|
||||
|
||||
### Using Docker directly
|
||||
|
||||
From GitHub Container Registry:
|
||||
```bash
|
||||
docker run -d \
|
||||
--name maskarr \
|
||||
-p 8888:8888 \
|
||||
-v $(pwd)/config:/app/config \
|
||||
--restart unless-stopped \
|
||||
ghcr.io/yourusername/maskarr:latest
|
||||
```
|
||||
|
||||
Or build the image locally:
|
||||
```bash
|
||||
# Clone the repository
|
||||
git clone https://github.com/yourusername/maskarr.git
|
||||
cd maskarr
|
||||
|
||||
# Build the image
|
||||
docker build -t maskarr .
|
||||
|
||||
# Run the container
|
||||
docker run -d \
|
||||
--name maskarr \
|
||||
-p 8888:8888 \
|
||||
-v $(pwd)/config:/app/config \
|
||||
--restart unless-stopped \
|
||||
maskarr:latest
|
||||
```
|
||||
|
||||
## CI/CD - automatic Docker image publishing
|
||||
|
||||
The project includes workflows for **GitHub Actions** and **Gitea Actions** that automatically
|
||||
publish Docker images.
|
||||
|
||||
### Supported registries
|
||||
|
||||
Each push to `main`/`master` or tag `v*.*.*` will publish to:
|
||||
|
||||
1. **GitHub Container Registry** (`ghcr.io`) - primary and most reliable
|
||||
2. **Gitea Container Registry** (your private instance)
|
||||
|
||||
### Using published images
|
||||
|
||||
```bash
|
||||
# From GitHub Container Registry (recommended)
|
||||
docker pull ghcr.io/dasemu/maskarr:latest
|
||||
|
||||
# From Gitea
|
||||
docker pull git.dariosevilla.es/dasemu/maskarr:latest
|
||||
```
|
||||
Reference in new issue
Block a user