51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
services:
|
|
asr-web:
|
|
image: tools-asr-pipeline:2026-09-18
|
|
pull_policy: never
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: tools-asr-web
|
|
restart: unless-stopped
|
|
init: true
|
|
env_file:
|
|
- /opt/asr-pipeline/.env
|
|
environment:
|
|
ASR_ROLE: web
|
|
ports:
|
|
- "192.168.50.49:8788:8788"
|
|
volumes:
|
|
- /mnt/truenas/personal/ASR-Pipeline:/data
|
|
- /opt/asr-pipeline/state:/state
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:8788/health"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|
|
security_opt:
|
|
- no-new-privileges:true
|
|
|
|
asr-worker:
|
|
image: tools-asr-pipeline:2026-09-18
|
|
pull_policy: never
|
|
container_name: tools-asr-worker
|
|
restart: unless-stopped
|
|
init: true
|
|
env_file:
|
|
- /opt/asr-pipeline/.env
|
|
environment:
|
|
ASR_ROLE: worker
|
|
command: ["python", "-m", "asrservice.worker"]
|
|
volumes:
|
|
- /mnt/truenas/personal/ASR-Pipeline:/data
|
|
- /opt/asr-pipeline/state:/state
|
|
healthcheck:
|
|
test: ["CMD", "python", "-m", "asrservice.healthcheck"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 20s
|
|
security_opt:
|
|
- no-new-privileges:true
|