Hardcoded ports and modified volume to file path
This commit is contained in:
parent
bd2e6889d7
commit
adae025d0b
2 changed files with 5 additions and 5 deletions
|
|
@ -82,7 +82,7 @@ services:
|
|||
volumes:
|
||||
- ../../:/app
|
||||
- ../../models:/app/models
|
||||
- hf_cache:/root/.cache/huggingface
|
||||
- ../../hf_cache:/root/.cache/huggingface
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
|
|
@ -95,9 +95,9 @@ services:
|
|||
- WATCHFILES_FORCE_POLLING=true
|
||||
- PYTHONPATH=/app
|
||||
- HF_HOME=/root/.cache/huggingface
|
||||
- HF_HUB_OFFLINE=1
|
||||
- HF_HUB_OFFLINE=0
|
||||
ports:
|
||||
- "8001:8001"
|
||||
- "0.0.0.0:58001:8001"
|
||||
depends_on:
|
||||
fyp-redis-dev:
|
||||
condition: service_healthy
|
||||
|
|
@ -107,4 +107,3 @@ services:
|
|||
volumes:
|
||||
fyp_postgres_data:
|
||||
fyp_redis_data:
|
||||
hf_cache:
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ services:
|
|||
build:
|
||||
context: ../../
|
||||
dockerfile: compose/dev/inference/Dockerfile
|
||||
restart: unless-stopped
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
|
|
@ -26,3 +25,5 @@ services:
|
|||
- '0.0.0.0:58001:8001'
|
||||
volumes:
|
||||
- ../../:/app
|
||||
- ../../models:/app/models
|
||||
- ../../hf_cache:/root/.cache/huggingface
|
||||
|
|
|
|||
Loading…
Reference in a new issue