evertramos / docker-wordpress

Wordpress Docker container using SSL Certificates with LetsEncrypt
https://evertramos.github.io/docker-wordpress/
MIT License
484 stars 156 forks source link

Second wordpress site destroy first container i made #29

Closed Kubilai12 closed 5 years ago

Kubilai12 commented 5 years ago

Hi

when i use docker-comose up for make a second website with wordpress i change all the variable on .ENV file Container name, path and domain.

it s say "recreating myfirstname container" destroy my frist container and build new with new name that ??

someone have same ?

evertramos commented 5 years ago

Hello @Kubilai12,

Please make sure you update the service name as of the readme instructions:

[IMPORTANT] Make sure to update your services name for each application so it does not conflicts with another service, such as, in the docker_compose.yml where we have db you could use site1-db, and wordpress you could use site1-wordpress. Update this to site2 when you put up a new site.

Kubilai12 commented 5 years ago

ok so i need to make change on docker_compose.yml not only on .ENV file

Kubilai12 commented 5 years ago

it s ok i do but when i create i have this:

WARNING: Found orphan containers (my first creation container) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.

Is it important ?

evertramos commented 5 years ago

You must do a docker-compose down on your services before you change the file otherwise you will have the initial containers running on the system... besides that this message will be shown for other services as well, don´t worry about it, just make sure you clean up things in your host.

Kubilai12 commented 5 years ago

and if i do already what happens after ? cause i build my other website can i have a trouble ? Can i let this situation ?

evertramos commented 5 years ago

you can just leave it with this message... don´t bother. You will be fine with it. It´s not orphan in fact is your other services. So, you are cool with it.

Kubilai12 commented 5 years ago

Ok thanks so much evert for you work and you re answer