Are you setting up a local WordPress install for development or testing? If so the WordPress local environment is usually the best way:
WordPress Local Environment
Thanks for your answer, I don’t know Docker and it seems to have a learning curve?
I tried to install it and is not working.
docker run -d -p 80:80 docker/getting-started
I got an error:
➜ docker-test docker run -d -p 80:80 docker/getting-started
308f46586e2472609e1cb7b25a6155a423ae784cae2c7ceab2c476d55cdf5e52
docker: Error response from daemon: Ports are not available: listen tcp 0.0.0.0:80: bind: address already in use.
-
This reply was modified 4 years, 5 months ago by
artotal.
-
This reply was modified 4 years, 5 months ago by
artotal.
I installed docker and it seems to work, but I have an error
Error establishing a database connection
He my file configuration:
version: '3'
services:
# Database
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: worpress
MYSQL_USER: worpress
MYSQL_PASSWORD: wordpress
networks:
- wpsite
worpress:
depends_on:
- db
image: wordpress:latest
ports:
- '8000:80'
restart: always
volumes: ['./:/var/www/html']
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
networks:
- wpsite
networks:
wpsite:
volumes:
db_data: