Introduction
This guide explains how to migrate your existing Easy8 installation to the official Docker-based environment, introduced in mid-2024. Docker brings many advantages like faster updates, simpler maintenance, and improved security. This guide provides a simplified overview of the migration process.
A detailed and always up-to-date manual is included in your application package: docker/README
Target Audience
- Administrator
Prerequisites
Before starting, ensure you have:
- Access to the Easy8 Client Zone
- Your Docker-compatible installation package
- Basic Docker knowledge (compose, containers, volumes)
- A migration plan including downtime and DNS/IP changes
- Backup of your current database and attachments
Block user access to the legacy app before migration to avoid data mismatch.
How to Migrate to Docker
Step 1: Prepare the Docker Application
- Log in to the Client Zone
- Download the official Docker package
- Includes login credentials to Docker registry
- Contains configuration files, templates, and the
READMEmanual
- Set up your environment as described in the manual
- Log in and download your Easy8 Docker image
- Launch the container and verify it runs (e.g., try opening the login page)
Before continuing, stop the application:
docker compose down
Now you're ready to prepare the data.
Step 2: Prepare Data to Migrate
Ensure you have:
- A compatible database dump (e.g.,
restore.sqlorrestore.sql.gz) - Backup of your attachments folder (
files/) from the legacy instance
Database dumps must work with Percona 8 as of December 2024.
Step 3: Restore the Database
- Place
restore.sqlinto:./docker-entrypoint-initdb.d/ - Remove the old DB container and volume:
docker compose down -v db - Start the DB container:
docker compose up -d db - Monitor progress:
docker compose logs -f db
Wait until restoration finishes.
Step 4: Migrate Attachments
- Copy attachments from the old instance to the Docker files directory:
cp -R /path/to/legacy/files/* ./files/ - Set file permissions:
sudo chown -R 5000:5000 ./files - Run database migrations only:
docker compose run --rm app install
Step 5: Post-Migration Steps
- Start the application:
docker compose up -d - (Optional) Run other commands as needed:
docker-compose run --rm app rails 'your command'
Conclusion
Migrating to Docker may seem like a challenge, but it's a smart move for long-term maintenance, security, and performance. You now benefit from a streamlined, modern architecture that is easier to update and scale.
A full and detailed guide is always available in your package: docker/README
