Docker Community Forums

Share and learn in the Docker community.

How to make changes to nginx.conf after running docker-compose.yml

For context, I used parts of the following guide to make a Nextcloud+nginx container. Of note, I noticed that the .yml found in the example below is largely different than the one on the main guide link.

I used the example .yml found here and placed my domain in the required fields. Everything worked perfectly and I have not had any issues with the install process.

I am now trying to modify the nginx.conf to allow for a subdomain to redirect to a specific URL. I tired updating the nginx.conf found in the /web/ folder and then running the following commands to update

$ docker-compose pull
$ docker-compose up -d

Nothing changes. I even wiped out the entire nginx.conf and tried again but it doesn’t take the information from that original file. Surely I am doing something incorrect.