diff --git a/projects/gitea-github-sync-dashboard/.gitignore b/projects/gitea-github-sync-dashboard/.gitignore new file mode 100644 index 0000000..b015684 --- /dev/null +++ b/projects/gitea-github-sync-dashboard/.gitignore @@ -0,0 +1,5 @@ +.venv/ +__pycache__/ +*.pyc +.DS_Store +.vscode/ diff --git a/projects/gitea-github-sync-dashboard/README.md b/projects/gitea-github-sync-dashboard/README.md new file mode 100644 index 0000000..f816cfc --- /dev/null +++ b/projects/gitea-github-sync-dashboard/README.md @@ -0,0 +1,3 @@ +# gitea-github-sync-dashboard + +This is the gitea-github-sync-dashboard repository. Update this README with relevant project details. diff --git a/projects/gitea-github-sync-dashboard/compose.yaml b/projects/gitea-github-sync-dashboard/compose.yaml new file mode 100644 index 0000000..e3a7890 --- /dev/null +++ b/projects/gitea-github-sync-dashboard/compose.yaml @@ -0,0 +1,52 @@ +version: '3' + +# Production compose file with dashboard - pulls pre-built images from Docker Hub +services: + # Core sync container + 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} + - GITEA_TOKEN=${GITEA_TOKEN} + - GITHUB_REPO=${GITHUB_REPO} + - GITHUB_TOKEN=${GITHUB_TOKEN} + # Optional configuration + - MONOREPO_SUBDIR=${MONOREPO_SUBDIR} + - SYNC_INTERVAL=${SYNC_INTERVAL} + - IGNORE_REPOS=${IGNORE_REPOS} + - DEFAULT_BRANCH=${DEFAULT_BRANCH} + - TZ=${TZ} + volumes: + - gitea_sync_data:/app/cache + networks: + - gitea_sync_network + + # Dashboard (Combined frontend and backend) + dashboard: + image: terrifiedbug/gitea-github-sync-dashboard:latest + container_name: gitea-sync-dashboard + restart: unless-stopped + ports: + - "8066:5000" + environment: + - NODE_ENV=production + - PORT=5000 + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ./dashboard/backend/logs:/app/logs + networks: + - gitea_sync_network + depends_on: + - gitea-github-sync + +volumes: + gitea_sync_data: + +networks: + gitea_sync_network: + driver: bridge \ No newline at end of file