version: "3.9" services: app: build: . container_name: sentiment_app ports: # Map host 8000 to container 7860 (Hugging Face default) - "8000:7860" # Chrome needs a larger /dev/shm to avoid crashes in headless mode shm_size: "2gb" environment: - PYTHONUNBUFFERED=1 volumes: # Persist wordcloud output between runs - ./static/output:/home/user/app/static/output # Mount a local model folder if you have one (optional) # Rename or create the folder 'indoBERT-sentiment' in the project root - ./indoBERT-sentiment:/home/user/app/indoBERT-sentiment restart: unless-stopped