3.6 KiB
title, description, order, updatedDate
| title | description | order | updatedDate |
|---|---|---|---|
| Quick Start Guide | Get started with Gitea Mirror quickly. | 3 | 2023-10-15 |
Gitea Mirror Quick Start Guide
This guide will help you get Gitea Mirror up and running quickly.
Prerequisites
Before you begin, make sure you have:
- A GitHub account with a personal access token
- A Gitea instance with an access token
- Docker and docker-compose (recommended) or Bun 1.2.9+ installed
Installation Options
Choose the installation method that works best for your environment.
Using Docker (Recommended)
Docker provides the easiest way to get started with minimal configuration.
-
Clone the repository:
git clone https://github.com/arunavo4/gitea-mirror.git cd gitea-mirror -
Start the application in production mode:
docker-compose --profile production up -d -
Access the application at http://localhost:4321
Manual Installation
If you prefer to run the application directly on your system:
-
Clone the repository:
git clone https://github.com/arunavo4/gitea-mirror.git cd gitea-mirror -
Run the quick setup script:
pnpm setupThis installs dependencies and initializes the database.
-
Choose how to run the application:
Development Mode:
pnpm devProduction Mode:
pnpm build pnpm start -
Access the application at http://localhost:4321
Initial Configuration
Follow these steps to configure Gitea Mirror for first use:
-
Create Admin Account
- Upon first access, you'll be prompted to create an admin account
- Choose a secure username and password
- This will be your administrator account
-
Configure GitHub Connection
- Navigate to the Configuration page
- Enter your GitHub username
- Enter your GitHub personal access token
- Select which repositories to mirror (all, starred, organizations)
- Configure repository filtering options
-
Configure Gitea Connection
- Enter your Gitea server URL
- Enter your Gitea access token
- Configure organization and visibility settings
-
Set Up Scheduling (Optional)
- Enable automatic mirroring if desired
- Set the mirroring interval (in seconds)
-
Save Configuration
- Click the "Save" button to store your settings
Performing Your First Mirror
After completing the configuration, you can start mirroring repositories:
- Click "Import GitHub Data" to fetch repositories from GitHub
- Go to the Repositories page to view your imported repositories
- Select the repositories you want to mirror
- Click "Mirror Selected" to start the mirroring process
- Monitor the progress on the Activity page
- You'll receive toast notifications about the success or failure of operations
Troubleshooting
If you encounter any issues:
- Check the Activity Log for detailed error messages
- Verify your GitHub and Gitea tokens have the correct permissions
- Ensure your Gitea instance is accessible from the machine running Gitea Mirror
- For Docker installations, check container logs with
docker logs gitea-mirror
Next Steps
After your initial setup:
- Explore the dashboard for an overview of your mirroring status
- Set up automatic mirroring schedules for hands-off operation
- Configure organization mirroring for team repositories