diff --git a/docker-compose.yml b/docker-compose.yml index ff3b56c..81e5a66 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: build: context: ./client ports: - - "3000:3000" + - "3000:3000" # For frontend volumes: - ./client:/app stdin_open: true diff --git a/server/Dockerfile b/server/Dockerfile index cf2e1a1..43c0d3d 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -17,7 +17,7 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy the entire project into the container COPY . /app/ -# Set environment variables from build arguments +# # Set environment variables from build arguments # ARG DJANGO_SECRET_KEY # ARG DJANGO_DEBUG # ARG EMAIL_HOST_USER @@ -25,15 +25,15 @@ COPY . /app/ # ARG GOOGLE_API_KEY # Set environment variables in the container -ENV DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY -ENV DJANGO_DEBUG=$DJANGO_DEBUG -ENV EMAIL_HOST_USER=$EMAIL_HOST_USER -ENV EMAIL_HOST_PASSWORD=$EMAIL_HOST_PASSWORD -ENV GOOGLE_API_KEY=$GOOGLE_API_KEY +# ENV DJANGO_SECRET_KEY=$DJANGO_SECRET_KEY +# ENV DJANGO_DEBUG=$DJANGO_DEBUG +# ENV EMAIL_HOST_USER=$EMAIL_HOST_USER +# ENV EMAIL_HOST_PASSWORD=$EMAIL_HOST_PASSWORD +# ENV GOOGLE_API_KEY=$GOOGLE_API_KEY # Run Django migrations and collect static files (if needed) RUN python manage.py migrate -RUN python manage.py collectstatic --noinput +# RUN python manage.py collectstatic --noinput # Start the server CMD ["gunicorn", "--bind", "0.0.0.0:8000", "server.wsgi:application"] \ No newline at end of file