mirror of
https://github.com/Dasemu/Maskarr.git
synced 2026-11-26 15:26:10 +00:00
1.9 KiB
1.9 KiB
Deployment
Run as a service (systemd)
Create /etc/systemd/system/maskarr.service:
[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:
sudo systemctl enable maskarr
sudo systemctl start maskarr
sudo systemctl status maskarr
Docker
Using Docker Compose (recommended)
# 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:
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:
# 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:
- GitHub Container Registry (
ghcr.io) - primary and most reliable - Gitea Container Registry (your private instance)
Using published images
# From GitHub Container Registry (recommended)
docker pull ghcr.io/dasemu/maskarr:latest
# From Gitea
docker pull git.dariosevilla.es/dasemu/maskarr:latest