Closed siege801 closed 1 year ago
Did you have checked, if the web_recipes container can reach PostgreSQL?
In your environment file you use an private address from the 192.168.xx.yy range. But the docker containers runs a 172.20.0.0/16 network.
Does the postgresql server listen on the correct address?
Issue
[error] 23#23: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 192.168.xx.xx, server: localhost, request: "GET / HTTP/1.1", upstream: "http://172.20.0.5:8080/", host: "192.168.xx.yy"
192.168.xx.xx - -"GET / HTTP/1.1" 502 4295 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0" "-"
Hi Everyone, I'm trying to spin up a new Tandoor server. I've previously used the standard docker-compose option, but this time am preferring to run PostgreSQL on the host. So I'm running the web_recipes and nginx_recipes parts of the docker-compose, pointing the relevant variables in .env to the host's PgSQL.
The lines above are what I receive in the recipes_web docker logs when the client (192.168.xx.xx) tries to access the page. 192.168.xx.yy is the IP of the host. The logs from recipes_app don't appear to indicate anything. However, I did note a line stating:
So I entered the container (sudo docker exec -it recipes_app /bin/sh) and tried to run ./manage.py makemigrations, but received an error stating the django module couldn't be found. I tried pip installing it, but then the dotenv module couldn't be found. I figured I shouldn't bother continuing down that path. Note: I've since deleted the relevant containers, images and volumes and re-pulled via docker-compose up, so I'm working on a clean install again free of any of the pip install damage.
In the web browser, I just get a page stating that "Services are still trying to start" and to wait 3 minutes.
System Details:
Any help would be greatly appreciated.
Tandoor Version
Uncertain - the latest from vabene1111/recipes
OS Version
AlmaLinux release 8.6 (Sky Tiger)
Setup
Docker / Docker-Compose
Reverse Proxy
No reverse proxy
Other
No response
Environment file
Docker-Compose file
Relevant logs
No response