Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 25, 2024
1 parent edc26d7 commit 80dcc12
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.10
ARG BASE_IMAGE=tiangolo/uvicorn-gunicorn-fastapi:python3.10
FROM ${BASE_IMAGE}
# Gunicorn image 3.4G: https://github.com/tiangolo/uvicorn-gunicorn-docker/tree/master/docker-images


Expand Down
15 changes: 12 additions & 3 deletions predict-drug-target/docker-compose.yml → docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
version: "3"

# Container to develop on remote server with GPUs
services:

predict-drug-target-api:
build: .
openpredict-dev:
# image: ghcr.io/vemonet/gpu-workspace:main
build:
context: .
dockerfile: Dockerfile
args:
- BASE_IMAGE=ghcr.io/vemonet/gpu-workspace:main
restart: unless-stopped
volumes:
- ./:/app
Expand All @@ -24,7 +31,9 @@ services:
shm_size: '4g'
# ports:
# - 8000:8000
command: uvicorn --host 0.0.0.0 src.api:app
# command: uvicorn --host 0.0.0.0 src.api:app
entrypoint: uvicorn src.trapi_openpredict.main:app --host 0.0.0.0 --port 8000 --reload
working_dir: /app/trapi-openpredict
# --reload
networks:
- nginx
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3"
services:

# Container used for deploying the API
Expand All @@ -13,7 +12,7 @@ services:
PYTHONUNBUFFERED: '1'
LOG_LEVEL: 'INFO'
OPENTELEMETRY_ENABLED: "false"
entrypoint: uvicorn trapi.main:app --host 0.0.0.0 --port 8808 --debug --reload
entrypoint: uvicorn src.trapi_openpredict.main:app --host 0.0.0.0 --port 8808 --reload


# # Container used for testing and running scripts
Expand Down

0 comments on commit 80dcc12

Please sign in to comment.