[docker] begin preparation
This commit is contained in:
parent
50862d2e8e
commit
d1fdde72a0
3 changed files with 16 additions and 0 deletions
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
FROM ungleich/nginx-letsencrypt-ipv6
|
||||||
|
LABEL maintainer = "docker@ungleich.ch"
|
||||||
|
|
||||||
|
RUN apk add --no-cache py3-flask
|
||||||
|
COPY server.py /
|
||||||
|
COPY nginx.conf /etc/nginx/https.conf
|
||||||
|
COPY entrypoint-post-https.sh /
|
2
entrypoint-post-https.sh
Executable file
2
entrypoint-post-https.sh
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
python3 /server.py
|
7
nginx.conf
Normal file
7
nginx.conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
location / {
|
||||||
|
proxy_pass http://localhost:5000;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue