mirror of
https://github.com/TerrifiedBug/komodo-stacks.git
synced 2026-11-11 19:59:29 +01:00
Repository: admin/gitea-github-sync Timestamp: 2025-04-20_10-07-13 Target directory: projects/gitea-github-sync
30 lines
1.2 KiB
YAML
30 lines
1.2 KiB
YAML
version: '3'
|
|
|
|
services:
|
|
gitea-github-sync:
|
|
image: terrifiedbug/gitea-github-sync:latest
|
|
container_name: gitea-github-sync
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
# Required configuration
|
|
- GITEA_URL=${GITEA_URL} # Your internal Gitea URL
|
|
- GITEA_TOKEN=${GITEA_TOKEN} # Gitea token with read access
|
|
- GITHUB_REPO=${GITHUB_REPO} # GitHub monorepo (org/repo)
|
|
- GITHUB_TOKEN=${GITHUB_TOKEN} # GitHub token with write access
|
|
# Optional configuration
|
|
- MONOREPO_SUBDIR=${MONOREPO_SUBDIR} # Subdirectory for projects in monorepo
|
|
- SYNC_INTERVAL=${SYNC_INTERVAL} # Sync interval in seconds (1 hour)
|
|
- IGNORE_REPOS=${IGNORE_REPOS} # Repos to ignore (comma-separated)
|
|
#- SYNC_SPECIFIC_REPO=${SYNC_SPECIFIC_REPO} # To sync only one repo (uncomment if needed)
|
|
#- ONE_TIME_RUN=${ONE_TIME_RUN} # Run once and exit (uncomment if needed)
|
|
- DEFAULT_BRANCH=${DEFAULT_BRANCH} # Default branch name
|
|
- TZ=${TZ} # Timezone
|
|
volumes:
|
|
# Persist repository cache between container restarts
|
|
- gitea_sync_data:/app/cache
|
|
|
|
volumes:
|
|
gitea_sync_data: # Using a named volume instead of a bind mount
|