PoskoLog / docker-compose.yml
Ferdinann's picture
Upload 8 files
498a0c8 verified
raw
history blame contribute delete
588 Bytes
version: '3.8'
services:
sentiment-analyzer:
build: .
container_name: sentiment_keluhan_app
ports:
- "7860:7860"
environment:
- TRANSFORMERS_CACHE=/app/cache
- HF_HOME=/app/cache
volumes:
# Mount cache untuk menyimpan model yang sudah di-download
- model_cache:/app/cache
restart: unless-stopped
deploy:
resources:
limits:
# Adjust sesuai kebutuhan server
cpus: '2'
memory: 4G
reservations:
cpus: '1'
memory: 2G
volumes:
model_cache:
driver: local