From 711359321c4087110544ef1b7e9de1f3f0cab850 Mon Sep 17 00:00:00 2001 From: Aaron Riedener Date: Sat, 6 Apr 2024 14:36:40 +0200 Subject: [PATCH] With this commit, the docker image will be created with an integrated nginx and the docker-compose.yml will configure a postgresql server both configured with same password and username so that they can connect together and start the application --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ca4c00e..f082d7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,7 @@ RUN apt-get update && apt-get install -y \ tar \ openjdk-17-jdk \ netcat \ + nginx \ && rm -rf /var/lib/apt/lists/* WORKDIR /usr/src/app @@ -32,4 +33,4 @@ ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64 EXPOSE 8000 # Command to run the Django development server -CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file +CMD python manage.py migrate && gunicorn --bind :8000 koalixcrm.wsgi \ No newline at end of file