mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-06 19:46:44 +03:00
1.6 KiB
1.6 KiB
Development Environment Setup
This directory contains scripts to help set up a development environment with a pre-configured Gitea instance.
Default Credentials
For development convenience, the Gitea instance is pre-configured with:
- Admin Username:
admin - Admin Password:
admin123 - Gitea URL: http://localhost:3001
Files
gitea-app.ini- Pre-configured Gitea settings for developmentgitea-dev-init.sh- Initialization script that copies the config on first rungitea-init.sql- SQL script to create default admin user (not currently used)
Usage
-
Start the development environment:
docker compose -f docker-compose.dev.yml down docker volume rm gitea-mirror_gitea-data gitea-mirror_gitea-config docker compose -f docker-compose.dev.yml up -d -
Wait for Gitea to start (check logs):
docker logs -f gitea -
Access Gitea at http://localhost:3001 and login with:
- Username:
admin - Password:
admin123
- Username:
-
Generate an API token:
- Go to Settings → Applications
- Generate New Token
- Give it a name like "gitea-mirror"
- Select all permissions (for development)
- Copy the token
-
Configure gitea-mirror with the token in your
.envfile or through the web UI.
Troubleshooting
If Gitea doesn't start properly:
- Check logs:
docker logs gitea - Ensure volumes are clean:
docker volume rm gitea-mirror_gitea-data gitea-mirror_gitea-config - Restart:
docker compose -f docker-compose.dev.yml up -d
Security Note
⚠️ These credentials are for development only! Never use these settings in production.