Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile.bene-portal
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ USER ${container_user}
# Environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV SPAR_BENE_PORTAL_HOST=0.0.0.0
ENV SPAR_BENE_PORTAL_PORT=8000
ENV SPAR_BENE_PORTAL_NO_OF_WORKERS=4
ENV G2P_SPAR_BENE_PORTAL_HOST=0.0.0.0
ENV G2P_SPAR_BENE_PORTAL_PORT=8000
ENV G2P_SPAR_BENE_PORTAL_NO_OF_WORKERS=4

# Set working directory to the bene portal API
WORKDIR /app/openg2p-spar-bene-portal-api

# Run application
CMD ["sh", "-c", "gunicorn main:app --workers ${SPAR_BENE_PORTAL_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${SPAR_BENE_PORTAL_HOST}:${SPAR_BENE_PORTAL_PORT} --access-logfile - --error-logfile -"]
CMD ["sh", "-c", "gunicorn main:app --workers ${G2P_SPAR_BENE_PORTAL_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${G2P_SPAR_BENE_PORTAL_HOST}:${G2P_SPAR_BENE_PORTAL_PORT} --access-logfile - --error-logfile -"]
8 changes: 4 additions & 4 deletions Dockerfile.mapper
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ USER ${container_user}
# Environment variables
ENV PYTHONUNBUFFERED=1
ENV PYTHONDONTWRITEBYTECODE=1
ENV SPAR_MAPPER_API_HOST=0.0.0.0
ENV SPAR_MAPPER_API_PORT=8000
ENV SPAR_MAPPER_API_NO_OF_WORKERS=4
ENV G2P_SPAR_MAPPER_API_HOST=0.0.0.0
ENV G2P_SPAR_MAPPER_API_PORT=8000
ENV G2P_SPAR_MAPPER_API_NO_OF_WORKERS=4

# Set working directory to the mapper API
WORKDIR /app/openg2p-spar-mapper-api

# Run application
CMD ["sh", "-c", "gunicorn main:app --workers ${SPAR_MAPPER_API_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${SPAR_MAPPER_API_HOST}:${SPAR_MAPPER_API_PORT} --access-logfile - --error-logfile -"]
CMD ["sh", "-c", "gunicorn main:app --workers ${G2P_SPAR_MAPPER_API_NO_OF_WORKERS} --worker-class uvicorn.workers.UvicornWorker --bind ${G2P_SPAR_MAPPER_API_HOST}:${G2P_SPAR_MAPPER_API_PORT} --access-logfile - --error-logfile -"]
7 changes: 7 additions & 0 deletions openg2p-spar-bene-portal-api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
G2P_SPAR_BENE_PORTAL_API_DB_DBNAME=openg2p_spar_db
G2P_SPAR_BENE_PORTAL_API_WORKER_TYPE=gunicorn
G2P_SPAR_BENE_PORTAL_API_HOST=0.0.0.0
G2P_SPAR_BENE_PORTAL_API_NO_OF_WORKERS=1
G2P_SPAR_BENE_PORTAL_API_DB_USERNAME=postgres
G2P_SPAR_BENE_PORTAL_API_DEFAULT_ISSUERS=["http://localhost:8080/realms/openg2p-beneficiary"]
G2P_SPAR_BENE_PORTAL_API_DEFAULT_JWKS_URLS=["http://localhost:8080/realms/openg2p-beneficiary/protocol/openid-connect/certs"]
8 changes: 8 additions & 0 deletions openg2p-spar-mapper-api/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
G2P_SPAR_MAPPER_API_DB_DBNAME=openg2p_spar_db
G2P_SPAR_MAPPER_API_WORKER_TYPE=gunicorn
G2P_SPAR_MAPPER_API_HOST=0.0.0.0
G2P_SPAR_MAPPER_API_NO_OF_WORKERS=1
G2P_SPAR_MAPPER_API_OPENAPI_ROOT_PATH="/api/mapper"
G2P_SPAR_MAPPER_API_DB_USERNAME=postgres
G2P_SPAR_MAPPER_API_DEFAULT_ISSUERS=["http://localhost:8080/realms/openg2p-beneficiary"]
G2P_SPAR_MAPPER_API_DEFAULT_JWKS_URLS=["http://localhost:8080/realms/openg2p-beneficiary/protocol/openid-connect/certs"]
Loading