File size: 830 Bytes
24a732c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# 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