diff --git a/deploy/metadata-services.yml b/deploy/metadata-services.yml index 700f4fa4..7240b7e7 100644 --- a/deploy/metadata-services.yml +++ b/deploy/metadata-services.yml @@ -25,8 +25,7 @@ services: - "8888:8888" environment: - SERVER_ENV - - SERVER_HOST=0.0.0.0 - - SERVER_PORT=8888 + - PATH_PREFIX=/api - ACCOUNTS_API_URL=${ODP_ADMIN_URL}/api - METADATA.ADAPTER=CKANAdapter - METADATA.OAUTH2_SCOPE=ODP.Metadata diff --git a/deploy/metadata-services/odp-api/Dockerfile-development b/deploy/metadata-services/odp-api/Dockerfile-development index b0f60b4d..a98d937b 100644 --- a/deploy/metadata-services/odp-api/Dockerfile-development +++ b/deploy/metadata-services/odp-api/Dockerfile-development @@ -19,4 +19,4 @@ ARG CA_CERT_URL RUN curl ${CA_CERT_URL} -k -f -o /usr/local/share/ca-certificates/saeon-internal-ca.crt; exit 0 RUN update-ca-certificates -CMD ["python", "ODP-API/odpapi/main.py"] +CMD ["uvicorn", "odpapi:app", "--host", "0.0.0.0", "--port", "8888"] diff --git a/deploy/metadata-services/odp-api/Dockerfile-production b/deploy/metadata-services/odp-api/Dockerfile-production index 5eb29b2d..647d6fb6 100644 --- a/deploy/metadata-services/odp-api/Dockerfile-production +++ b/deploy/metadata-services/odp-api/Dockerfile-production @@ -19,4 +19,4 @@ ARG CA_CERT_URL RUN curl ${CA_CERT_URL} -k -f -o /usr/local/share/ca-certificates/saeon-internal-ca.crt; exit 0 RUN update-ca-certificates -CMD ["python", "ODP-API/odpapi/main.py"] +CMD ["uvicorn", "odpapi:app", "--host", "0.0.0.0", "--port", "8888"] diff --git a/deploy/metadata-services/odp-api/Dockerfile-staging b/deploy/metadata-services/odp-api/Dockerfile-staging index 6bd568e7..c50d7e92 100644 --- a/deploy/metadata-services/odp-api/Dockerfile-staging +++ b/deploy/metadata-services/odp-api/Dockerfile-staging @@ -19,4 +19,4 @@ ARG CA_CERT_URL RUN curl ${CA_CERT_URL} -k -f -o /usr/local/share/ca-certificates/saeon-internal-ca.crt; exit 0 RUN update-ca-certificates -CMD ["python", "ODP-API/odpapi/main.py"] +CMD ["uvicorn", "odpapi:app", "--host", "0.0.0.0", "--port", "8888"] diff --git a/deploy/metadata-services/odp-api/requirements.txt b/deploy/metadata-services/odp-api/requirements.txt index dd79de87..97c4ae6c 100644 --- a/deploy/metadata-services/odp-api/requirements.txt +++ b/deploy/metadata-services/odp-api/requirements.txt @@ -1,4 +1,4 @@ -certifi==2020.4.5.1 +certifi==2020.4.5.2 chardet==3.0.4 ckanapi==4.3 click==7.1.2 @@ -6,7 +6,8 @@ dnspython==1.16.0 docopt==0.6.2 elasticsearch==6.8.1 email-validator==1.1.1 -fastapi==0.54.2 +fastapi==0.55.1 +gunicorn==20.0.4 h11==0.9.0 httptools==0.1.1 idna==2.9 @@ -15,7 +16,7 @@ pydantic==1.5.1 python-dotenv==0.13.0 python-slugify==4.0.0 requests==2.23.0 -six==1.14.0 +six==1.15.0 SQLAlchemy==1.3.17 starlette==0.13.2 text-unidecode==1.3