iris-at-text2sparql / compose.yaml
Alex Latipov
Upload challenge API
0f21eb9
raw
history blame contribute delete
734 Bytes
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