Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config file not being discovered #215

Closed
Olaaa30 opened this issue Oct 26, 2023 · 4 comments
Closed

config file not being discovered #215

Olaaa30 opened this issue Oct 26, 2023 · 4 comments

Comments

@Olaaa30
Copy link

Olaaa30 commented Oct 26, 2023

I have my nginx.conf file in a parent directory-"nginx". When I run my deployment pipeline, dockercompose just copies the parent "nginx" directory. Please take a look at the project here: https://github.com/Ocean-Db/fast-API/blob/main/docker-compose.yml
Your feedback would be highly valuable.
Thanks in anticipation

@JonasAlfredsson
Copy link
Owner

On my phone so keeping it short :)

Remove the server block for port 80 and try again.

If that does not work you need to copy paste the logs here for me to see.

@Olaaa30
Copy link
Author

Olaaa30 commented Oct 27, 2023

Hi, thanks for you response. Removing the server block for port 80 didnt work but
I was able to find a work around by including the nginx.conf file in the cicd pipeline

@Olaaa30 Olaaa30 closed this as completed Oct 27, 2023
@JonasAlfredsson
Copy link
Owner

Ah, looking at your deployment scripts you copy the docker-compose.yml file to a target host and then execute that. If you did not include the nginx.conf file in your copy step you would not be able to read it on the target server.

@Olaaa30
Copy link
Author

Olaaa30 commented Oct 28, 2023

Yeah, I eventually realized that😅. Thanks for your insights

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants