
- nginx - proxy_pass on port 5000 - static available at url "xxxx/static/<file> - djangoserver - just a program with infinite while for test docker-compose Nginx and Djangoserv containers linked with the folder at "/var/wwww/djangoserver"
7 lines
278 B
Docker
7 lines
278 B
Docker
FROM nginx:latest
|
|
|
|
RUN mkdir -p /etc/nginx/ssl
|
|
RUN apt install -y openssl
|
|
RUN openssl req -x509 -nodes -out /etc/nginx/ssl/inception.crt -keyout /etc/nginx/ssl/inception.key -subj "/C=FR/ST=IDF/L=Paris/O=42/OU=42/CN=ptme.com/UID=ptme"
|
|
COPY conf/nginx.conf /etc/nginx/nginx.conf
|