Skip to content

Commit

Permalink
fix docker
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Mar 25, 2024
1 parent 13f3176 commit 156c3c1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ docker compose up api

> Contributions are welcome! If you wish to help improve OpenPredict, see the [instructions to contribute :woman_technologist:](/CONTRIBUTING.md) for more details on the development workflow

To deploy a development workspace on a remote server with GPUs, clone the repo and deploy with docker compose:

```bash
docker compose -f docker-compose.dev.yml up --force-recreate
```

### Test the OpenPredict API

Run the tests locally with docker:
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ services:
# CPU node3: predict-drug-target.137.120.31.148.nip.io
- VIRTUAL_PORT=8000
- OPENTELEMETRY_ENABLED=false
- PYTHONUNBUFFERED=1
- LOG_LEVEL=INFO
deploy:
resources:
reservations:
Expand All @@ -32,7 +34,7 @@ services:
# ports:
# - 8000:8000
# command: uvicorn --host 0.0.0.0 src.api:app
entrypoint: dvc pull && uvicorn src.trapi_openpredict.main:app --host 0.0.0.0 --port 8000 --reload
entrypoint: bash -c "dvc pull && uvicorn src.trapi_openpredict.main:app --host 0.0.0.0 --port 8000 --reload"
working_dir: /app/trapi-openpredict
# --reload
networks:
Expand Down

0 comments on commit 156c3c1

Please sign in to comment.