• Saltar a la navegación principal
  • Saltar al contenido principal
  • Saltar al pie de página
labarta

Labarta

  • Blog
  • Vídeos Docker
  • Vídeos entrevistas
  • Dominios
  • Hosting
  • Quién soy

"docker-compose" para WordPress - Volumes

12/02/2020

docker-compose-labarta

 

"docker-compose" para WordPress - Volumes

Seguimos con la serie sobre "docker-compose" para WordPress.

Este es el tercer artículo sobre "docker-compose" para WordPress - Te aconsejo, si no lo has hecho ya, que leas los anteriores.

  1. "docker-compose" para WordPress -paso a paso -intro
  2. "docker-compose" para WordPress -paso a paso -restart

 

Vale, ya hemos puesto en marcha nuestro WordPress, pero ¿cómo accedemos a los datos? en la carpeta solo veo el fichero "docker-compose".

 

carpeta01

 

Bueno los datos están dentro del contenedor, pero hay que entrar con código y ello nos puede resultar algo complejo.

 

terminal-contenedor

 

Pero tenemos una solución para entrar a ver los datos de una forma fácil (más simple que por FTP), vamos a ello...creamos una nueva carpeta "02" y en ella copiamos nuestro "docker-compose.yml" .

Seguimos realizando cambios en este fichero .yml, en primer lugar vamos a cambiar las líneas que hay en "volumes" .

En wordpress añadimos estas dos líneas respetando los espacios en blanco:

volumes:

  - ./wordpress:/var/www/html

Y en db/volumes cambiamos lo que hay por esto:

- ./db_data:/var/lib/mysql

El último paso es eliminar las dos últimas líneas de nuestro fichero y nos queda así:

 

docker-compose-02

 

Ahora arrancamos los contenedores de la carpeta 02 con el comando:

docker-compose up -d

 

Y si todo ha ido bien dentro de nuestra carpeta estarán los datos de "Mysql" y de "WordPress" .

 

datos-01

datos-mysql

datos-wp

 

Esto ya empieza a tener buen aspecto, pero aún nos quedan muchas cosas por hacer.

En el próximo artículo añadiremos "phpMyAdmin" , para poder acceder desde localhost:8080.

 

 


Si te ha gustado este artículo, por favor, comparte - Gracias -


Artículos Relacionados

  • portada-organizr-2 Cómo instalar Organizr usando Docker-compose
  • portada-budgetzero-2 Cómo instalar Budgetzero + CouchDB usando Docker-compose
  • portada-mirotalk-2 Cómo instalar MiroTalk SFU usando docker-compose
  • portada-openkm-2 Cómo instalar OpenKm usando docker-compose

Blog,  Docker docker-compose

  • Todas las entradas
  • Github
  • Meetup WordPress
  • Política de cookies

Footer

GINERNET - Servidor VPS

Ginernet

GeneratePress - Tema WordPress

GeneratePress

GINERNET - Hosting WordPress

Ginernet2

OnlyOffice - Online Office

Usamos ONLYOFFICE Online Office

Copyright © 2025 · Labarta - Powered by : Labarta

Usamos cookies en nuestro sitio web para brindarle la experiencia más relevante recordando sus preferencias y visitas repetidas. Al hacer clic en “Aceptar todo”, acepta el uso de todas las cookies. Sin embargo, puede visitar "Configuración cookies" para proporcionar un consentimiento controlado.
Configuración cookiesAceptar todo
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Siempre activado
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDuraciónDescripción
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
GUARDAR Y ACEPTAR