1.7 KiB
1.7 KiB
Server Migration Todo List
1. Pre-Migration (Old Server)
- Fill in all missing values in
secrets.txt. - Verify that
backup.zipcontains all necessary files. - Stop all containers:
./down.shordocker-compose downin each directory. - Securely transfer
backup.zipto the new server (e.g., usingscp).
2. Environment Setup (New Server)
- Install Docker and Docker Compose.
- Create external Docker networks:
docker network create proxy-netdocker network create socket-net
- Clone the repository to the new server.
- Unzip
backup.zipinto the project root.
3. Configuration & Data Restoration
- Traefik SSL: Move
acme.jsontoinfra/core/letsencrypt/. - Traefik Permissions: Run
chmod 600 infra/core/letsencrypt/acme.json. - Authelia Data: Move
users.ymlanddb.sqlite3toinfra/authelia/config/. - Environment Files:
- Create
infra/core/.envfromsecrets.txt. - Create
infra/authelia/.envfromsecrets.txt. - Run
chmod 600 infra/core/.env infra/authelia/.env.
- Create
- DDNS: Restore
scripts/dynu/dynu-environment. - Homepage: Restore
homepage/config/*.yamlfiles.
4. Deployment
- Run
./up.shto start all services. - Check Traefik logs:
docker logs traefik -f. - Verify SSL certificates are loading correctly.
- Check Authelia logs:
docker logs authelia -f. - Test login via
auth.<your-domain>.
5. Post-Deployment
- Update Dynu IP manually if the update script hasn't run yet.
- Verify all services in the Homepage dashboard.
- CRITICAL: Delete
backup.zipandsecrets.txtfrom the server once verified.