diff --git a/DockerfileHttps b/DockerfileHttps deleted file mode 100644 index 3746a7c..0000000 --- a/DockerfileHttps +++ /dev/null @@ -1,17 +0,0 @@ -# Source: https://fastapi.tiangolo.com/deployment/docker/#build-a-docker-image-for-fastapi - -FROM python:3.11 - -# set work directory -WORKDIR /code - -# copy requirements.txt first to leverage Docker cache -COPY ./requirements.txt /code/requirements.txt -RUN pip install --upgrade pip -RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt - -# copy project -COPY ./app /code/app - -# run server -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "443", "--ssl-keyfile=./app/certs/privkey1.pem", "--ssl-certfile=./app/certs/cert1.pem"] diff --git a/docker-compose.yml b/docker-compose.yml index 5234464..682fb3f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,4 @@ services: - # https: - # build: - # context: . - # dockerfile: DockerfileHttps - # ports: - # - "443:443" - # volumes: - # - /etc/letsencrypt/archive/apps.xmp.systems:/code/app/certs:ro - # restart: always - http: build: context: .