Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
| services: | |
| api: | |
| image: ${API_IMAGE:-text2sparql-challenge-api:latest} | |
| build: | |
| context: . | |
| dockerfile: Dockerfile | |
| container_name: ${CONTAINER_NAME:-text2sparql-challenge-api} | |
| ports: | |
| - "127.0.0.1:${HOST_BIND_PORT:-8000}:${CONTAINER_PORT:-7860}" | |
| read_only: true | |
| tmpfs: | |
| - /tmp | |
| security_opt: | |
| - no-new-privileges:true | |
| cap_drop: | |
| - ALL | |
| pids_limit: 256 | |
| restart: unless-stopped | |
| volumes: | |
| - type: bind | |
| source: ${HOST_MODEL_DIR:-./runtime/models} | |
| target: /models | |
| read_only: true | |
| - type: bind | |
| source: ${HOST_CACHE_DIR:-./runtime/cache} | |
| target: /cache | |
| environment: | |
| MODEL_DIR: /models | |
| CACHE_DIR: /cache | |