restoring a WP backup in docker gives issues with CSS

Hi, I’m trying to make it short…Locally I started with a docker-compose with wordpress+mysql+phpmyadmin and 2 volumes, one for /var/www/html/ and another for the db.After I had a working site, with 7 pages I needed to make an installable backup of the installation together with the db and wp\_data, so:

\-for the DB I did an sql export from within phpmyadmin.

\-for the WP data I made a tar archive of the whole /var/www/html/ folder (which was mounted in a docker volume.

To install that backup on a remote VM I’ve prepared a docker-compose.yml file like this:

version: ‘3’
services:
# Database
db:
image: mysql:5.7
volumes:
– db_my_data:/var/lib/mysql
– ./initdb:/docker-entrypoint-initdb.d
restart: always
env_file: .env
environment:
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_DATABASE: $MYSQL_DATABASE
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
networks:
– my_network
# phpmyadmin
phpmyadmin:
depends_on:
– db
image: phpmyadmin
restart: always
ports:
– ‘8081:80’
env_file: .env
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: $MYSQL_ROOT_PASSWORD
MYSQL_USER: $MYSQL_USER
MYSQL_PASSWORD: $MYSQL_PASSWORD
networks:
– my_network
# WordPress
wordpress:
depends_on:
– db
image: wordpress:latest
ports:
– ‘8001:80’
restart: always
volumes:
– ./wp_my_data:/var/www/html
env_file: .env
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_NAME: $MYSQL_DATABASE
WORDPRESS_DB_USER: $MYSQL_USER
WORDPRESS_DB_PASSWORD: $MYSQL_PASSWORD
networks:
– my_network
networks:
my_network:
volumes:
db_my_data:

The site is all there, but the problem is that 3 pages on 7 have the css messed up! Can you suggest me where to look for the problem?

1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer