Skip to content

Docker コンテナデプロイ ​

OneTTS は、本番環境向けの Docker イメージと docker-compose.yml を提供しており、ゼロ構成でワンクリックデプロイが可能です。


🚀 Docker Compose によるワンクリック起動 ​

1. 設定ファイル docker-compose.yml ​

yaml
services:
  onetts:
    image: codeandxv/onetts:latest
    container_name: onetts-server
    restart: unless-stopped
    ports:
      - "8030:8030"
    volumes:
      - ./config.yaml:/app/config.yaml:ro
      - ./data:/app/data:rw
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8030/health"]
      interval: 30s
      timeout: 5s
      retries: 3

2. コンテナの起動 ​

bash
docker compose up -d

3. ヘルスチェックの確認 ​

bash
curl http://localhost:8030/health
# {"status":"ok","service":"OneTTS"}

Released under the Apache-2.0 License.