Get the MRE api working #1
@ -12,12 +12,12 @@ services:
|
|||||||
- ./nginx/conf.d:/etc/nginx/conf.d # Mount Nginx configuration
|
- ./nginx/conf.d:/etc/nginx/conf.d # Mount Nginx configuration
|
||||||
- ./static:/var/www/static # Serve static files
|
- ./static:/var/www/static # Serve static files
|
||||||
depends_on:
|
depends_on:
|
||||||
- uwsgi
|
- mre_api
|
||||||
|
|
||||||
mre_api:
|
mre_api:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
docker-file: docker/mre.docker-file
|
dockerfile: docker/mre.Dockerfile
|
||||||
networks:
|
networks:
|
||||||
- frontend
|
- frontend
|
||||||
- backend
|
- backend
|
||||||
@ -49,7 +49,7 @@ services:
|
|||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
networks:
|
networks:
|
||||||
-backend
|
- backend
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432" # Expose PostgreSQL port (for debugging/admin)
|
- "5432:5432" # Expose PostgreSQL port (for debugging/admin)
|
||||||
|
|||||||
@ -3,26 +3,25 @@ FROM python:3.13.2-bullseye
|
|||||||
LABEL MAINTAINER="Chris Diesch <chris@quarterhomes.com>"
|
LABEL MAINTAINER="Chris Diesch <chris@quarterhomes.com>"
|
||||||
|
|
||||||
WORKDIR /var/www
|
WORKDIR /var/www
|
||||||
# make sure everything it up-to-date
|
|
||||||
RUN "apt-get -y update"
|
|
||||||
|
|
||||||
# Add the entrypoint and make it executable
|
# Add the entrypoint and make it executable
|
||||||
ADD ./entrypoint.sh /var/docker-entrypoint.sh
|
ADD ./docker/entrypoint.sh /var/docker-entrypoint.sh
|
||||||
RUN "chmod +x /var/docker-entrypoint.sh"
|
RUN chmod +x /var/docker-entrypoint.sh
|
||||||
|
|
||||||
# add the requirements and install them
|
# add the requirements and install them
|
||||||
ADD ../requirements.txt /var/www/requirements.txt
|
|
||||||
RUN "pip install -Ur /var/www/requirements.txt"
|
ADD ./requirements.txt /var/www/requirements.txt
|
||||||
|
RUN pip install -Ur /var/www/requirements.txt
|
||||||
|
|
||||||
# add the uwsgi runner
|
# add the uwsgi runner
|
||||||
ADD ../run.py /var/www/run.py
|
ADD ./run.py /var/www/run.py
|
||||||
|
|
||||||
# set environment variables
|
# set environment variables
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
ENV PYTHONUNBUFFERED 1
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
# Copy the app directory
|
# Copy the app directory
|
||||||
COPY ../app /var/www/app
|
COPY ./app /var/www/app
|
||||||
|
|
||||||
# define the entrypoint
|
# define the entrypoint
|
||||||
ENTRYPOINT ["/var/docker-entrypoint.sh"]
|
ENTRYPOINT ["/var/docker-entrypoint.sh"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user