Files
komodo-stacks/projects/gitea-github-sync/compose.yaml
T
Gitea Sync Bot 4026efda26 Sync gitea-github-sync from Gitea to monorepo
Repository: admin/gitea-github-sync
Timestamp: 2025-04-19_23-12-57
Target directory: projects/gitea-github-sync
2025-04-19 23:13:00 +01:00

30 lines
1.2 KiB
YAML

version: '3'
services:
gitea-github-sync:
image: terrifiedbug/gitea-github-sync:latest
container_name: gitea-github-sync-test
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