# Docker Compose for OCR Dataset Generator version: '3.8' services: # Web UI service web: build: context: . dockerfile: Dockerfile target: production ports: - "3000:3000" volumes: - ./fonts:/app/fonts:ro - ./input:/app/input:ro - ./output:/app/output - ./logs:/app/logs environment: - NODE_ENV=production restart: unless-stopped # CLI service for batch generation cli: build: context: . dockerfile: Dockerfile target: production volumes: - ./fonts:/app/fonts:ro - ./input:/app/input:ro - ./output:/app/output - ./logs:/app/logs - ./config.yaml:/app/config.yaml:ro entrypoint: ["node", "dist/index.js"] command: ["generate", "--config", "/app/config.yaml"] profiles: - cli