Issue Restoring Joomla 3.10.11 to Docker

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
User avatar
meldedchaoz
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Thu Feb 27, 2014 11:51 pm

Issue Restoring Joomla 3.10.11 to Docker

Post by meldedchaoz » Wed Apr 19, 2023 5:27 pm

I'm looking to restore my backed-up version of Joomla! 3.10.11, backed up by Akeeba, to a docker container locally so that I can test the migration to Joomla! 4, but am having issues in doing so. Hopefully someone here may have the solution that I'm looking for!

My current Joomla! installation is on PHP 7.4.19 with MySQL 5.5.5-10.3.29-MariaDB on Apache/2.4.46
The Docker image appears to be PHP 8.0.28 with MySQL 5.7 on Apache/2.4.56

I have set up Docker containers with the following YAML, and it works just fine to start up the base Joomla! 3.10.11 image/website:

Code: Select all

services:
  joomla:
    image: joomla:3.10.11
    restart: always
    container_name: joomla
    hostname: joomla
    links:
      - joomladb:joomla
    depends_on:
      - joomladb
    ports:
      - 80:80
      - 443:443
    volumes:
      - joomla-volume:/var/www/html
    environment:
      JOOMLA_DB_HOST: joomladb
      JOOMLA_DB_PASSWORD: *****

  joomladb:
    image: mysql:5.7
    container_name: joomladb
    hostname: joomladb
    ports:
      - 3306:3306
    restart: always
    volumes:
      - mysql-volume:/var/lib/mysql
    environment:
      MYSQL_ROOT_PASSWORD: *****
      MYSQL_USER: joomla
      MYSQL_PASSWORD: *****
      MYSQL_DATABASE: joomla
      
  phpmyadmin:
    image: phpmyadmin
    container_name: phpmyadmin
    hostname: phpmyadmin
    links:
    - joomladb
    depends_on:
    - joomladb
    ports:
    - 8080:80
    environment:
    - PMA_HOST=joomladb

volumes:
  mysql-volume:
  joomla-volume:
I'm able to launch the default site and get to the back-end where I install Akeeba, load up the archive image, and do the restoration. During the restoration I disable SSL for ease of debugging as well as update my hosts file to point the DNS of the website to my local Docker image.

Once restored, I'm able to get to the back-end admin center without any issue, but the front end is not loading, takes about 10-15 seconds to attempt load, and seems to be related to a 500 Internal Server Error (related to "strict-origin-when-cross-origin") and not being able to load JQuery (probably a symptom). A few items load, like the site logo, but 95+% of it never comes through.
2023-04-19_11-09-57.jpg
I've already talked with Akeeba support and they indicated that they are able to restore the site without issue, leading me to believe that it's a Docker-specific issue. Based on their testing and mine it doesn't appear to be related to:
  • cache (which I've disabled)
  • .htaccess (which I've done all kinds of things to in testing this)
  • the configuration.php.

Any thoughts? Help? ...please? :-[
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Wed Apr 19, 2023 11:27 pm, edited 1 time in total.
Reason: mod note: moved from 3.x Migrating and Upgrading

Locked

Return to “Installation Joomla! 3.x”