Files
dockge-migration-guide/MIGRATION_SUCCESS.md
2025-11-16 10:51:46 +00:00

4.3 KiB

GITEA MIGRATION SUCCESSFUL

Date: 2025-11-16 Duration: 45 minutes Status: Complete - Awaiting DNS Update Repository: https://git.proton.obr.sh/olaf/dockge-migration-guide


Quick Summary

Gitea has been successfully migrated from photon.obnh.io to fry.obr.sh (45.131.64.213).

Completed Tasks

  • Database backup created and verified (7.2MB)
  • Containers stopped on photon.obnh.io
  • Database transferred and restored on fry.obr.sh
  • Both containers deployed and running on fry
  • Traefik routing configured
  • Documentation committed to git

🔄 Pending Action

DNS UPDATE REQUIRED:

git.photon.obnh.io
Current: 46.247.109.251 (photon)
Target:  45.131.64.213 (fry)

Current Status

Containers on fry.obr.sh

NAME             STATUS                    PORTS
gitea            Up                        3000/tcp, 0.0.0.0:222->22/tcp
gitea_postgres   Up (healthy)              127.0.0.1:5432->5432/tcp

Network Configuration

  • Traefik Network: traefik-public (172.18.0.5)
  • Internal Network: gitea_gitea
  • SSH Git Port: 222
  • HTTP/HTTPS: Via Traefik reverse proxy

Data Integrity

  • Database: 39,922 SQL statements successfully restored
  • Backup MD5: 448b6aa744b57e9c18fa05fefb765fee
  • Git Repositories: Preserved in named volume gitea_gitea
  • Configuration: Identical to photon setup

Next Steps

  1. Update DNS Record

    # Update your DNS provider to point:
    git.photon.obnh.io A 45.131.64.213
    
  2. Wait for DNS Propagation (5-60 minutes)

  3. Verify Accessibility

    # Test web access
    curl -L https://git.photon.obnh.io
    
    # Test git operations
    git clone https://git.photon.obnh.io/user/repo.git
    git clone ssh://git@git.photon.obnh.io:222/user/repo.git
    
  4. Monitor for 24 Hours

    ssh root@fry.obr.sh "docker logs -f gitea"
    ssh root@fry.obr.sh "docker logs -f gitea_postgres"
    
  5. Decommission Photon Gitea (after 7 days)


Rollback Procedure (If Needed)

# 1. Restart on photon
ssh root@photon.obnh.io "cd /opt/gitea && docker compose up -d"

# 2. Stop on fry
ssh root@fry.obr.sh "cd /opt/gitea && docker compose down"

# DNS automatically points back to photon (46.247.109.251)

Repository Structure

/home/olaf/dockge-migration-guide/
├── README.md                              # Project overview
├── MIGRATION_SUCCESS.md                   # This file
├── docs/
│   ├── 01-overview.md                     # Migration strategy
│   ├── 02-gitea-migration.md              # Step-by-step log
│   └── 03-migration-complete-summary.md   # Technical details
├── backups/
│   └── gitea_db_backup_20251116_104052.sql  # 7.2MB database dump
├── docker-configs/
│   └── gitea-compose-photon.yml           # Original configuration
└── screenshots/
    └── 01-photon-dockge-gitea-view.png    # Dockge WebUI screenshot

Key Metrics

Metric Value
Downtime ~5 minutes
Data Transferred 7.2MB
Database Records 39,922 SQL statements
Containers Migrated 2 (gitea + postgres)
Volumes Created 2 (gitea, postgres)
Networks Configured 2 (gitea_gitea, traefik-public)

Technical Notes

Why Not Dockge WebUI?

The Gitea stack on photon was created with docker-compose CLI, not via Dockge. Dockge displayed "This stack is not managed by Dockge", so we used direct SSH + docker compose commands instead. This proved more reliable and scriptable.

Migration Method

  1. Backup: pg_dump → SQL file
  2. Transfer: scp to fry
  3. Deploy: docker compose up -d postgres
  4. Restore: psql < backup.sql
  5. Start: docker compose up -d gitea

Security

  • PostgreSQL password preserved from original
  • Gitea security keys/tokens preserved
  • Recommendation: Rotate secrets post-migration
  • Database bound to localhost only (127.0.0.1:5432)

Support

Git Repository: https://git.proton.obr.sh/olaf/dockge-migration-guide Orchestrated by: @agent-zen-orchestrator Completion: 2025-11-16T10:50:00Z

For questions or issues, check the detailed logs in docs/ directory.


🎉 Migration Complete! Update DNS to finish the transition.