casmopedia / docker-compose.yml
aradhyapavan's picture
CospmoPedia
7e3b585 verified
raw
history blame contribute delete
617 Bytes
version: '3.8'
services:
cosmopedia:
build: .
ports:
- "7860:7860"
environment:
- PORT=7860
- PYTHONUNBUFFERED=1
volumes:
- ./data:/app/data:ro
- ./static:/app/static:ro
- ./templates:/app/templates:ro
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7860/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Redis for caching (if needed)
# redis:
# image: redis:alpine
# ports:
# - "6379:6379"
# restart: unless-stopped