I have been handed over a redeployment of an app allready deployed on a Windows server, where both the python backend, postgress db and frontend is on the same server. I have asked to seperate it and to put it on linux dockers. The consultant that originally made is no longer availiable, so I'm not perfectly sure what is crucial and what is not.
On my own ubuntu pc I'm developing this using --network=host. I have setup the postgress and the python backend with waitress listening to localhost:7000 and now I need to make the nginx docker.
The deployment instructions for the windows server related to the nginx config file are:
After editing the config on the remote machine, you can reload it with
psexec -w C:\tools\nginx -s nginx -s reload. (nginx is saved in C:\tools\nginx)
After seeing this nginx setup my current dockerfile is something like this:
FROM nginx COPY html /usr/share/nginx/html COPY nginx.conf /etc/nginx/nginx.conf
Any surgestions for a suitiable nginx.conf for this setup or is there something I have missed? In general almost any advise will be appreciated(I'm a noob).