We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29ca41f commit 8d3c10fCopy full SHA for 8d3c10f
Dockerfile
@@ -8,6 +8,13 @@ WORKDIR /
8
ENV PYTHONDONTWRITEBYTECODE 1
9
ENV PYTHONUNBUFFERED 1
10
11
+# create a static directory for nginx
12
+ENV HOME=/
13
+ENV APP_HOME=/static
14
+RUN mkdir $APP_HOME
15
+RUN mkdir $APP_HOME/static
16
+WORKDIR $APP_HOME
17
+
18
# install dependencies
19
RUN pip install --upgrade pip
20
RUN pip install psycopg2
nginx/nginx.conf
@@ -1,13 +1,13 @@
1
upstream pythondjango {
2
- server 174.138.52.28:8000;
+ server web:8000;
3
}
4
5
server {
6
7
listen 80;
location / {
- proxy_pass http://pythondjango;
+ proxy_pass http://174.138.52.28/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_redirect off;
0 commit comments