trying to install a fresh WordPress Install using Docker Compose. I'm using AWS EC2 with a ELB Everything looks fine on logs but once I access to my site I got no css loaded, see the screen: no css
And the network error: enter image description here
Here is my docker-compose:
version: "3"
services:
wordpress:
image: conetix/wordpress-with-wp-cli
ports:
- 80:80
restart: always
environment:
- WORDPRESS_DB_HOST=namehostwp
- WORDPRESS_DB_USER=nameuserwp
- WORDPRESS_DB_PASSWORD=passworddbwp
- WORDPRESS_DB_NAME=namedbwp
volumes:
- ./wp_data:/var/www/html
This image is wordpress and wp cli. Then I run: docker exec <container id> wp core install --path="/var/www/html" --url="http://nomdomaine" title="Example" --admin_user=supervisor --admin_password=strongpassword --admin_email=info@example.com
Install went well, and in wp-config I got the good dbhost, dbuser, dbpw and dbname
All files seems ok plugins ok
I dont know what to do.. thx for any help / tips
EDIT: stylesheet url: stylesheet
It looks like you haven't properly configured your domain name and as result the css file can not be loaded. That's what your error ERR_NAME_NOT_RESOLVED
means
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.