How do I install another Wordpress site using Docker-Compose?

Asked

Viewed 113 times

0

I did the installation of Wordpress within a container no Ubuntu 18.04 lts, through this tutorial here. Worked.

Now, I would like to install more than one Wordpress site to create other different projects.

How can I do this? Should I create another container? Create another file and do the same tutorial procedure?

I’m lost, help me, please.

Thank you

2 answers

0


To create a new container with the wordpress application you need to duplicate the settings below the "wordpress" tag in your Docker-Compose file. Remembering that you will need to change some settings, such as the port that your wordpress container will use and the database

0

Good afternoon,

Yes, each Docker container runs only one project at a time. In this case, it would be best to create another project and put Docker in it.

For each project, a Docker container must be created to use it.

Hug.

  • Thank you, Leonardo! If it’s not too much to ask, would you tell me how to create another container? I only managed to rename the first, but to create another asks me a login, I do not understand, or if you know any tutorial to tell me? Thanks again.

  • https://www.hostinger.com.br/tutoriais/como-instalar-wordpress-no-docker-windows-macos-e-linux/#gref

  • https://www.mundodevops.com/instalando-e-configurando-o-wordpress-utilizando-o-docker/

  • http://blog.aeciopires.com/instalando-o-wordpress-via-docker/

  • Perfect! Thank you so much for the disposal and help!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.