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:
|
volumes:
|
||||||
- ../../:/app
|
- ../../:/app
|
||||||
- ../../models:/app/models
|
- ../../models:/app/models
|
||||||
- hf_cache:/root/.cache/huggingface
|
- ../../hf_cache:/root/.cache/huggingface
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
|
@ -95,9 +95,9 @@ services:
|
||||||
- WATCHFILES_FORCE_POLLING=true
|
- WATCHFILES_FORCE_POLLING=true
|
||||||
- PYTHONPATH=/app
|
- PYTHONPATH=/app
|
||||||
- HF_HOME=/root/.cache/huggingface
|
- HF_HOME=/root/.cache/huggingface
|
||||||
- HF_HUB_OFFLINE=1
|
- HF_HUB_OFFLINE=0
|
||||||
ports:
|
ports:
|
||||||
- "8001:8001"
|
- "0.0.0.0:58001:8001"
|
||||||
depends_on:
|
depends_on:
|
||||||
fyp-redis-dev:
|
fyp-redis-dev:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
@ -107,4 +107,3 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
fyp_postgres_data:
|
fyp_postgres_data:
|
||||||
fyp_redis_data:
|
fyp_redis_data:
|
||||||
hf_cache:
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@ services:
|
||||||
build:
|
build:
|
||||||
context: ../../
|
context: ../../
|
||||||
dockerfile: compose/dev/inference/Dockerfile
|
dockerfile: compose/dev/inference/Dockerfile
|
||||||
restart: unless-stopped
|
|
||||||
deploy:
|
deploy:
|
||||||
resources:
|
resources:
|
||||||
reservations:
|
reservations:
|
||||||
|
|
@ -26,3 +25,5 @@ services:
|
||||||
- '0.0.0.0:58001:8001'
|
- '0.0.0.0:58001:8001'
|
||||||
volumes:
|
volumes:
|
||||||
- ../../:/app
|
- ../../:/app
|
||||||
|
- ../../models:/app/models
|
||||||
|
- ../../hf_cache:/root/.cache/huggingface
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue