I Want to make make a docker image of my Django app using PostgreSQL and
unicorn. but I can't find any good tutorial for reference
please share my link to if you know any good tutorial

My Dockerfile now is like
FROM python:3.6
ENV PYTHONUNBUFFERED 1
RUN mkdir /app
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt
RUN apt install postgresql-client
RUN mkdir postgresqlcode
COPY /private_key/client-cert.pem /private_key/client-cert.pem
COPY /private_key/client-cert.pem /private_key/client-cert.pem
COPY /private_key/client-cert.pem /private_key/client-cert.pem
RUN psql "sslmode=verify-ca sslrootcert=\server-ca.pem \
sslcert=client-cert.pem sslkey=\client-key.pem \
hostaddr=hostaddress \
port=port \
user=postgres dbname=postgres"
COPY . /code/


I know I have to make Django-compose.yml file and I ha

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL8_rkEBoEuAC7N9XCgDsakOVSsGtM1EM_3bZc9azOL3jPhDjw%40mail.gmail.com.

Reply via email to