docker compose (Ready) :
- 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"
This commit is contained in:
6
srcs/requirements/nginx/Dockerfile
Normal file
6
srcs/requirements/nginx/Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
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
|
||||
Reference in New Issue
Block a user