dockerized wordpress problem
-
Good morning,
I work at a small development company and we would like to start dockerizing our applications.Among other things, we are trying to dockerize wordpress for a client’s website.
We have used the following docker-compose file:
version: '3' services: cosde_wp: image: wordpress:6.4.1 container_name: cosde_wp ports: - 82:80 restart: unless-stopped environment: - WORDPRESS_DB_HOST=ip_db:3306 - WORDPRESS_DB_USER=user - WORDPRESS_DB_PASSWORD=password - WORDPRESS_DB_NAME=db_name volumes: - ./wp-data:/var/www/html:rw
The server running Docker is a Debian 11 Bullseye VM.
The database is hosted on a separate server.Everything is pretty basic; the container starts, we did the initial settings and created the WordPress user for the client’s external designer who will be creating the actual website.
The designer installed the Elementor plugin, and this is where the problems begin. Every time a page is created or modified, the error “The preview cannot be loaded” appears. I have done some tests and I can create pages and upload images, but it seems that the pages have no formatting. Even after downloading and applying a theme, the pages appear to be unformatted.
If it may be helpful, these are the permissions of the wp-data directory:
drwxr-xr-x 5 www-data www-data 4096 Jan 31 10:32 wp-data
Can someone kindly tell me if there are any specific settings needed to make dockerized WordPress work correctly? Is it necessary to apply specific privileges to the folders inside the container? Or is what happens an error of the Elementor plugin?
The page I need help with: [log in to see the link]
- The topic ‘dockerized wordpress problem’ is closed to new replies.