for mysql. simple install and enjoy. instructions below.
266
for simple installing with mysql
download and enjoy
do this:
nano docker-compose.yml
put inside of file:
services:
db:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wp_DB
MYSQL_USER: wp_adm
MYSQL_PASSWORD: 1234
opencart:
image: dmms495/wordpress
restart: always
ports:
- 80:80
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wp_adm
WORDPRESS_DB_PASSWORD: 1234
WORDPRESS_DB_NAME: wp_DB
depends_on:
- db
phpmyadmin:
image: phpmyadmin:latest
restart: always
ports:
- "8080:80"
environment:
PMA_HOST: db
MYSQL_ROOT_PASSWORD: root
depends_on:
- db
then start with command : "sudo docker compose up -d" or without "-d" (your choice)
"sudo docker compose up" works with "docker-compose.yml" file
""############################################################################""
if you dont have docker latest follow the instruction here (official Docker) :
https://docs.docker.com/engine/install/
""############################################################################""
set up wp on:
http://"your's local address"/
find "Database Host" :
"docker ps" or "sudo docker ps"
you should find database comtainer.
example: "user-db-1"
then command "docker inspect user-db-1"
will show you bellow ip address of your's database
it's inside network....should be somethink like :
"Gateway": "172.18.0.1",
"IPAddress": "172.18.0.2", <<<<<<-------"Database Host"
"IPPrefixLen": 16,
"IPv6Gateway": "",
all other configuration data are in the docker-compose.yml file.
enjoy)))
p.s.:
http://"your's local address"/:8080
it's your's phpmyadmin
login:root
password:root
relax))) mariaivanna))
Content type
Image
Digest
sha256:01c098cc0…
Size
91.9 MB
Last updated
about 1 year ago
docker pull dmms495/wordpress